Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|advancedSolenoid.armature.stopper_xMax.v_rel|advancedSolenoid.c_par1.v|advancedSolenoid.c_par2.v|advancedSolenoid.coil1.Phi|advancedSolenoid.coil2.Phi|advancedSolenoid.x|simpleSolenoid.armature.stopper_xMax.v_rel|simpleSolenoid.coil.Phi|simpleSolenoid.x",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009703/0.0009704, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.2 MB / 240.3 MB, free: 11.86 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008838/0.0008838, allocations: 94.83 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003051/0.0003052, allocations: 7.938 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.205, allocations: 50.39 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.31, allocations: 95.7 MB / 497.2 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/0.3102, allocations: 95.89 kB / 497.3 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3434/0.6537, allocations: 79.46 MB / 0.5632 GB, free: 49.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6537, allocations: 0 / 0.5632 GB, free: 49.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001346/0.6551, allocations: 112 kB / 0.5633 GB, free: 49.07 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01476/0.6699, allocations: 6.924 MB / 0.5701 GB, free: 42.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.6699, allocations: 12.03 kB / 0.5701 GB, free: 42.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001878/0.6718, allocations: 0.8602 MB / 0.571 GB, free: 41.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007995/0.6798, allocations: 3.64 MB / 0.5745 GB, free: 37.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001545/0.6801, allocations: 160.1 kB / 0.5747 GB, free: 37.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005285/0.6806, allocations: 203.9 kB / 0.5749 GB, free: 37.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003698/0.6843, allocations: 2.131 MB / 0.5769 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.712e-05/0.6844, allocations: 0 / 0.5769 GB, free: 34.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001724/0.6846, allocations: 87.98 kB / 0.577 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.9e-05/0.6846, allocations: 48 kB / 0.5771 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003419/0.688, allocations: 2.001 MB / 0.579 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01654/0.7046, allocations: 10.13 MB / 0.5889 GB, free: 22.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003477/0.7081, allocations: 2.404 MB / 0.5913 GB, free: 19.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.7082, allocations: 38.42 kB / 0.5913 GB, free: 19.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001932/0.7102, allocations: 1.199 MB / 0.5925 GB, free: 18.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 4.459e-06/0.7102, allocations: 3.938 kB / 0.5925 GB, free: 18.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=385): time 0.06036/0.7706, allocations: 21.64 MB / 0.6136 GB, free: 12.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1056/0.8762, allocations: 34.48 MB / 0.6473 GB, free: 9.461 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3169/1.193, allocations: 13.47 MB / 0.6604 GB, free: 95.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006806/1.194, allocations: 90.67 kB / 0.6605 GB, free: 95.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004733/1.199, allocations: 3.718 MB / 0.6641 GB, free: 95.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001554/1.2, allocations: 1.274 MB / 0.6654 GB, free: 95.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005468/1.201, allocations: 70.97 kB / 0.6655 GB, free: 95.51 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/1.201, allocations: 439 kB / 0.6659 GB, free: 95.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002918/1.204, allocations: 1.353 MB / 0.6672 GB, free: 95.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003009/1.207, allocations: 1.709 MB / 0.6689 GB, free: 94.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002892/1.21, allocations: 1.561 MB / 0.6704 GB, free: 94.95 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.228e-06/1.21, allocations: 3.531 kB / 0.6704 GB, free: 94.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=448) (initialization): time 0.01188/1.222, allocations: 5.471 MB / 0.6757 GB, free: 94.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/1.222, allocations: 8.312 kB / 0.6757 GB, free: 94.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/1.222, allocations: 5.156 kB / 0.6757 GB, free: 94.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005721/1.228, allocations: 1.466 MB / 0.6772 GB, free: 94.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003047/1.231, allocations: 0.5661 MB / 0.6777 GB, free: 94.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02348/1.254, allocations: 22.67 MB / 0.6999 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003887/1.258, allocations: 201.7 kB / 0.7001 GB, free: 77.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004907/1.259, allocations: 120.5 kB / 0.7002 GB, free: 77.42 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (320): * Single equations (assignments): 309 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.004075/1.263, allocations: 2.2 MB / 0.7023 GB, free: 76.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002107/1.265, allocations: 0.8531 MB / 0.7032 GB, free: 76.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01292/1.278, allocations: 5.627 MB / 0.7087 GB, free: 74.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005141/1.283, allocations: 2.485 MB / 0.7111 GB, free: 73.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.41e-05/1.283, allocations: 5.594 kB / 0.7111 GB, free: 73.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.626e-05/1.283, allocations: 20.52 kB / 0.7111 GB, free: 73.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03089/1.314, allocations: 14.19 MB / 0.725 GB, free: 65.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/1.314, allocations: 4 kB / 0.725 GB, free: 65.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002551/1.317, allocations: 489.5 kB / 0.7254 GB, free: 64.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005507/1.322, allocations: 1.474 MB / 0.7269 GB, free: 63.49 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003069/1.322, allocations: 86.91 kB / 0.727 GB, free: 63.42 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02114/1.344, allocations: 20.84 MB / 0.7473 GB, free: 42.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.07929/1.423, allocations: 30.5 MB / 0.7771 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01472/1.438, allocations: 8.052 MB / 0.785 GB, free: 7.375 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004315/1.442, allocations: 1.601 MB / 0.7865 GB, free: 5.746 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001362/1.443, allocations: 91.95 kB / 0.7866 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003121/1.446, allocations: 167.9 kB / 0.7868 GB, free: 5.492 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006431/1.447, allocations: 299.2 kB / 0.7871 GB, free: 5.199 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002198/1.447, allocations: 100.7 kB / 0.7871 GB, free: 5.102 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0174/1.465, allocations: 10.87 MB / 0.7978 GB, free: 10.28 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.1e-07/1.465, allocations: 0 / 0.7978 GB, free: 10.28 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005664/1.47, allocations: 1.76 MB / 0.7995 GB, free: 8.527 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (266): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.001239/1.472, allocations: 0.5323 MB / 0.8 GB, free: 8.227 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008468/1.48, allocations: 5.065 MB / 0.8049 GB, free: 3.055 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.48, allocations: 4.062 kB / 0.805 GB, free: 3.051 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005268/1.486, allocations: 3.526 MB / 0.8084 GB, free: 15.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003327/1.489, allocations: 490.8 kB / 0.8089 GB, free: 14.94 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2254/1.714, allocations: 21.94 MB / 0.8303 GB, free: 121 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003851/1.718, allocations: 4.212 MB / 0.8344 GB, free: 120.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003038/1.721, allocations: 0.8437 MB / 0.8352 GB, free: 120.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00124/1.722, allocations: 349.6 kB / 0.8356 GB, free: 120 MB / 458.7 MB Notification: Performance of SimCode: time 1.282e-06/1.722, allocations: 0 / 0.8356 GB, free: 120 MB / 458.7 MB Notification: Performance of Templates: time 0.2822/2.005, allocations: 88.99 MB / 0.9225 GB, free: 59.07 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/SolenoidActuator/ComparisonPullInStroke/ComparisonPullInStroke.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches