Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_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.001018/0.001018, allocations: 95.78 kB / 16.93 MB, free: 5.984 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.001141/0.001141, allocations: 175 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.426/1.426, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004277/0.0004277, allocations: 12 kB / 280.9 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08266/0.0831, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008595/0.09173, allocations: 8.789 MB / 337.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006357/0.09811, allocations: 3.533 MB / 340.7 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009519/0.0991, allocations: 35.88 kB / 340.8 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006712/0.1058, allocations: 7.958 MB / 348.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00503/0.1109, allocations: 4.616 MB / 353.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001621/0.1125, allocations: 0.5616 MB / 353.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004726/0.1172, allocations: 3.479 MB / 357.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001018/0.1183, allocations: 0.6839 MB / 358.1 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00307/0.1213, allocations: 2.494 MB / 360.6 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005162/0.1265, allocations: 3.766 MB / 364.3 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003981/0.1269, allocations: 132 kB / 364.5 MB, free: 15.85 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005662/0.1275, allocations: 160 kB / 364.6 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001366/0.1289, allocations: 1.713 MB / 366.3 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009788/0.1299, allocations: 1.075 MB / 367.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004198/0.1341, allocations: 5.394 MB / 372.8 MB, free: 7.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.1341, allocations: 4 kB / 372.8 MB, free: 7.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1341, allocations: 0 / 372.8 MB, free: 7.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.399e-05/0.1342, allocations: 0 / 372.8 MB, free: 7.48 MB / 318.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.009851/0.1441, allocations: 6.691 MB / 379.5 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.1441, allocations: 12.03 kB / 379.5 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005102/0.1446, allocations: 291.4 kB / 379.8 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1632/0.3079, allocations: 0.8433 MB / 380.6 MB, free: 47.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005488/0.3134, allocations: 2.889 MB / 383.5 MB, free: 46.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.3135, allocations: 159.1 kB / 383.7 MB, free: 46.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003143/0.3139, allocations: 213.1 kB / 383.9 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00393/0.3178, allocations: 2.061 MB / 386 MB, free: 46.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.913e-05/0.3179, allocations: 3.672 kB / 386 MB, free: 46.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001624/0.318, allocations: 85.89 kB / 386 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.344e-05/0.3181, allocations: 50.47 kB / 386.1 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003833/0.3219, allocations: 1.872 MB / 388 MB, free: 45.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01404/0.336, allocations: 8.771 MB / 396.7 MB, free: 40.56 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003356/0.3394, allocations: 2.255 MB / 399 MB, free: 39.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001281/0.3395, allocations: 51.45 kB / 399 MB, free: 39.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001666/0.3412, allocations: 1.12 MB / 400.2 MB, free: 38.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 4.89e-06/0.3412, allocations: 0 / 400.2 MB, free: 38.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=375): time 0.05529/0.3965, allocations: 21.42 MB / 421.6 MB, free: 18.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.07523/0.4718, allocations: 30.14 MB / 451.7 MB, free: 3.707 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01685/0.4887, allocations: 14.86 MB / 466.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005755/0.4893, allocations: 89.7 kB / 466.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003666/0.493, allocations: 3.722 MB / 470.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001582/0.4946, allocations: 1.241 MB / 471.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.4948, allocations: 64 kB / 471.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.495, allocations: 443 kB / 472.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002368/0.4974, allocations: 1.205 MB / 473.3 MB, free: 14.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002513/0.4999, allocations: 1.559 MB / 474.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002522/0.5024, allocations: 1.407 MB / 476.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.5025, allocations: 4 kB / 476.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=441) (initialization): time 0.01089/0.5134, allocations: 5.09 MB / 481.4 MB, free: 5.965 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.5134, allocations: 8 kB / 481.4 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.5134, allocations: 4 kB / 481.4 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004955/0.5184, allocations: 1.354 MB / 482.8 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002608/0.521, allocations: 0.5617 MB / 483.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02371/0.5448, allocations: 21.24 MB / 0.4927 GB, free: 13.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00324/0.548, allocations: 172.9 kB / 0.4929 GB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003381/0.5484, allocations: 119.9 kB / 0.493 GB, free: 13.29 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (313): * Single equations (assignments): 302 * 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.003002/0.5514, allocations: 2.192 MB / 0.4952 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001036/0.5524, allocations: 0.8136 MB / 0.496 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/0.5625, allocations: 5.153 MB / 0.501 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004722/0.5673, allocations: 2.279 MB / 0.5032 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/0.5673, allocations: 4 kB / 0.5032 GB, free: 2.77 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.835e-05/0.5674, allocations: 23.92 kB / 0.5032 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01854/0.5859, allocations: 10.78 MB / 0.5138 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.566e-05/0.586, allocations: 8.016 kB / 0.5138 GB, free: 7.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/0.5882, allocations: 471.5 kB / 0.5142 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004976/0.5932, allocations: 1.384 MB / 0.5156 GB, free: 6.039 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002726/0.5935, allocations: 83.95 kB / 0.5157 GB, free: 5.957 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02172/0.6152, allocations: 19.69 MB / 0.5349 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2294/0.8447, allocations: 26.76 MB / 0.561 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01218/0.8569, allocations: 6.971 MB / 0.5678 GB, free: 128 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00173/0.8587, allocations: 0.7532 MB / 0.5686 GB, free: 127.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007567/0.8594, allocations: 75.56 kB / 0.5686 GB, free: 127.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002105/0.8615, allocations: 137.8 kB / 0.5688 GB, free: 127.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005532/0.8621, allocations: 277.1 kB / 0.569 GB, free: 127.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000175/0.8623, allocations: 101.5 kB / 0.5691 GB, free: 127.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.009574/0.8719, allocations: 11.11 MB / 0.58 GB, free: 117.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.8719, allocations: 0 / 0.58 GB, free: 117.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00433/0.8762, allocations: 1.104 MB / 0.5811 GB, free: 116.3 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.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%) 4,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2,(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.01229/0.8885, allocations: 8.069 MB / 0.5889 GB, free: 108.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00703/0.8956, allocations: 4.74 MB / 0.5936 GB, free: 103.3 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.8957, allocations: 0 / 0.5936 GB, free: 103.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004416/0.9001, allocations: 3.322 MB / 0.5968 GB, free: 99.87 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.9031, allocations: 487.2 kB / 0.5973 GB, free: 99.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08452/0.9877, allocations: 80.41 MB / 0.6758 GB, free: 13.84 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003203/0.9909, allocations: 4.202 MB / 0.6799 GB, free: 9.598 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002053/0.993, allocations: 337.2 kB / 0.6802 GB, free: 9.262 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00279/0.9958, allocations: 3.256 MB / 0.6834 GB, free: 6.004 MB / 430.1 MB Notification: Performance of SimCode: time 1.333e-06/0.9958, allocations: 4 kB / 0.6834 GB, free: 6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3372/1.333, allocations: 135.5 MB / 0.8157 GB, free: 53.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/1.333, allocations: 288.2 kB / 0.816 GB, free: 53.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.069/8.402, allocations: 3.906 kB / 0.816 GB, free: 53.43 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) Environment - environmentSimulation: