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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009556/0.000956, allocations: 88.39 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001189, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 223.3 MB / 241.2 MB, free: 5.234 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002442/0.0002443, allocations: 6.375 kB / 300.9 MB, free: 5.461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1033, allocations: 50.43 MB / 351.3 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01001/0.1133, allocations: 9.739 MB / 361.1 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006917/0.1203, allocations: 3.503 MB / 364.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001392/0.1217, allocations: 35.88 kB / 364.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00729/0.129, allocations: 8.106 MB / 372.7 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006235/0.1353, allocations: 4.536 MB / 377.3 MB, free: 1.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.1375, allocations: 0.5811 MB / 377.8 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006301/0.1438, allocations: 4.432 MB / 382.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001468/0.1453, allocations: 0.6839 MB / 383 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004005/0.1493, allocations: 2.502 MB / 385.5 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006192/0.1556, allocations: 4.143 MB / 389.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00116/0.1568, allocations: 140 kB / 389.7 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00127/0.158, allocations: 176 kB / 389.9 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001605/0.1597, allocations: 1.724 MB / 391.6 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.1609, allocations: 1.079 MB / 392.7 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005581/0.1665, allocations: 5.444 MB / 398.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.1665, allocations: 4 kB / 398.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.1665, allocations: 0 / 398.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002705/0.1668, allocations: 4 kB / 398.2 MB, free: 12.27 MB / 334.1 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.0127/0.1795, allocations: 6.683 MB / 404.8 MB, free: 5.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.1796, allocations: 16.03 kB / 404.9 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009541/0.1806, allocations: 291.4 kB / 405.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00149/0.1821, allocations: 0.8445 MB / 406 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004195/0.1863, allocations: 2.777 MB / 408.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001765/0.1865, allocations: 156.1 kB / 408.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003202/0.1868, allocations: 203.9 kB / 409.1 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004108/0.1909, allocations: 2.127 MB / 411.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.932e-05/0.191, allocations: 7.859 kB / 411.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001749/0.1912, allocations: 88 kB / 411.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.995e-05/0.1912, allocations: 48 kB / 411.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003861/0.1951, allocations: 1.938 MB / 413.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0153/0.2104, allocations: 8.973 MB / 422.3 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00408/0.2145, allocations: 2.333 MB / 424.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2099/0.4245, allocations: 1.376 MB / 426 MB, free: 60.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003348/0.4249, allocations: 47.94 kB / 426.1 MB, free: 60.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002553/0.4274, allocations: 1.171 MB / 427.2 MB, free: 60.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.378e-06/0.4274, allocations: 1.719 kB / 427.2 MB, free: 60.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06541/0.4929, allocations: 22.95 MB / 450.2 MB, free: 52.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02659/0.5195, allocations: 13.17 MB / 463.4 MB, free: 39.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01658/0.5361, allocations: 14.91 MB / 478.3 MB, free: 24.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007131/0.5369, allocations: 81.7 kB / 478.3 MB, free: 24.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003077/0.54, allocations: 3.737 MB / 482.1 MB, free: 20.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0014/0.5414, allocations: 1.21 MB / 483.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002592/0.5417, allocations: 68 kB / 483.4 MB, free: 19.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.5419, allocations: 441.7 kB / 483.8 MB, free: 19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002337/0.5442, allocations: 1.256 MB / 485 MB, free: 17.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002492/0.5467, allocations: 1.634 MB / 486.7 MB, free: 16.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002627/0.5494, allocations: 1.461 MB / 488.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.5494, allocations: 4 kB / 488.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01084/0.5602, allocations: 5.219 MB / 493.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.227e-05/0.5603, allocations: 4 kB / 493.4 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/0.5603, allocations: 12 kB / 493.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005013/0.5654, allocations: 1.398 MB / 494.8 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002817/0.5682, allocations: 0.55 MB / 495.3 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02723/0.5955, allocations: 21.89 MB / 0.5051 GB, free: 260 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003555/0.5991, allocations: 143.9 kB / 0.5052 GB, free: 116 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005313/0.5996, allocations: 112 kB / 0.5053 GB, free: 4 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (309): * Single equations (assignments): 300 * Array equations: 0 * 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%) 3,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 50} Notification: Performance of prepare postOptimizeDAE: time 0.004584/0.6042, allocations: 2.192 MB / 0.5075 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001749/0.606, allocations: 0.8136 MB / 0.5083 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/0.6186, allocations: 5.241 MB / 0.5134 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.332e-05/0.6187, allocations: 36 kB / 0.5134 GB, free: 7.652 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-05/0.6187, allocations: 8 kB / 0.5134 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.771e-05/0.6188, allocations: 23.92 kB / 0.5135 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02209/0.6409, allocations: 11.1 MB / 0.5243 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.526e-05/0.641, allocations: 0 / 0.5243 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002587/0.6436, allocations: 475.4 kB / 0.5247 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005366/0.6489, allocations: 1.339 MB / 0.5261 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006602/0.6496, allocations: 75.97 kB / 0.5261 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02506/0.6747, allocations: 20 MB / 0.5457 GB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02489/0.6996, allocations: 11.56 MB / 0.5569 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01489/0.7146, allocations: 6.971 MB / 0.5638 GB, free: 2.484 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001955/0.7166, allocations: 0.7599 MB / 0.5645 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009042/0.7175, allocations: 67.98 kB / 0.5646 GB, free: 1.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002111/0.7196, allocations: 124 kB / 0.5647 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007329/0.7204, allocations: 271.3 kB / 0.5649 GB, free: 1.242 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002131/0.7206, allocations: 92.17 kB / 0.565 GB, free: 1.152 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.01502/0.7356, allocations: 11.15 MB / 0.5759 GB, free: 6.059 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7357, allocations: 3.938 kB / 0.5759 GB, free: 6.055 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005617/0.7413, allocations: 1.074 MB / 0.577 GB, free: 4.98 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,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.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 49,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.2109/0.9522, allocations: 7.94 MB / 0.5847 GB, free: 135.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009536/0.9618, allocations: 4.826 MB / 0.5894 GB, free: 134.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.9618, allocations: 0 / 0.5894 GB, free: 134.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006301/0.9682, allocations: 3.301 MB / 0.5927 GB, free: 133.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003935/0.9721, allocations: 0.5229 MB / 0.5932 GB, free: 133.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1082/1.08, allocations: 78.67 MB / 0.67 GB, free: 68.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00568/1.086, allocations: 4.01 MB / 0.6739 GB, free: 64.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002338/1.088, allocations: 301.2 kB / 0.6742 GB, free: 64.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003724/1.092, allocations: 3.229 MB / 0.6773 GB, free: 61.39 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/1.092, allocations: 0 / 0.6773 GB, free: 61.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4184/1.511, allocations: 132.9 MB / 0.8071 GB, free: 104.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/1.511, allocations: 292.4 kB / 0.8074 GB, free: 104.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.622/9.132, allocations: 0 / 0.8074 GB, free: 104.5 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)