Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001722/0.001728, allocations: 181.4 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.117/2.117, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001158/0.001157, allocations: 96.42 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.0003951, allocations: 15.98 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.374, allocations: 47.56 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01303/0.387, allocations: 8.792 MB / 383.4 MB, free: 38.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01021/0.3973, allocations: 3.529 MB / 386.9 MB, free: 35.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003771/0.4012, allocations: 36.31 kB / 387 MB, free: 35.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01437/0.4156, allocations: 7.958 MB / 394.9 MB, free: 28.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008194/0.4239, allocations: 4.616 MB / 399.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002996/0.4269, allocations: 0.5577 MB / 400.1 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007385/0.4343, allocations: 3.488 MB / 403.6 MB, free: 19.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.4359, allocations: 0.6878 MB / 404.3 MB, free: 19.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004736/0.4407, allocations: 2.486 MB / 406.8 MB, free: 16.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007288/0.448, allocations: 3.769 MB / 410.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001375/0.4494, allocations: 132 kB / 410.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001779/0.4512, allocations: 160 kB / 410.8 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002188/0.4535, allocations: 1.717 MB / 412.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.4551, allocations: 1.072 MB / 413.6 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006809/0.462, allocations: 5.395 MB / 419 MB, free: 4.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.462, allocations: 0 / 419 MB, free: 4.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4621, allocations: 0 / 419 MB, free: 4.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002598/0.4623, allocations: 0 / 419 MB, free: 4.32 MB / 298.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.01682/0.4792, allocations: 6.691 MB / 425.7 MB, free: 13.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.4792, allocations: 8.031 kB / 425.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001044/0.4803, allocations: 295.3 kB / 426 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001955/0.4823, allocations: 0.8445 MB / 426.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008286/0.4906, allocations: 2.897 MB / 429.7 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002779/0.4909, allocations: 152.1 kB / 429.9 MB, free: 9.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007393/0.4917, allocations: 207.9 kB / 430.1 MB, free: 9.047 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007838/0.4995, allocations: 2.076 MB / 432.2 MB, free: 6.902 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001112/0.4997, allocations: 8 kB / 432.2 MB, free: 6.895 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000351/0.5001, allocations: 80 kB / 432.3 MB, free: 6.816 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.686e-05/0.5001, allocations: 52 kB / 432.3 MB, free: 6.766 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007906/0.5081, allocations: 1.872 MB / 434.2 MB, free: 4.887 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02622/0.5343, allocations: 8.767 MB / 442.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007183/0.5416, allocations: 2.263 MB / 445.2 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003493/0.542, allocations: 38.41 kB / 445.2 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004439/0.5464, allocations: 1.124 MB / 446.4 MB, free: 8.391 MB / 330.7 MB Notification: Performance of pre-optimization done (n=242): time 7.273e-06/0.5465, allocations: 0 / 446.4 MB, free: 8.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=375): time 0.1168/0.6633, allocations: 21.43 MB / 467.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1562/0.8196, allocations: 30.15 MB / 498 MB, free: 3.766 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3037/1.123, allocations: 14.86 MB / 0.5008 GB, free: 100.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006325/1.124, allocations: 88.17 kB / 0.5009 GB, free: 100.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004041/1.128, allocations: 2.866 MB / 0.5037 GB, free: 98.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00166/1.13, allocations: 1.246 MB / 0.5049 GB, free: 97.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004007/1.13, allocations: 71.09 kB / 0.505 GB, free: 97.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002029/1.13, allocations: 438.7 kB / 0.5054 GB, free: 97.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004315/1.135, allocations: 1.203 MB / 0.5066 GB, free: 97.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004731/1.14, allocations: 1.562 MB / 0.5081 GB, free: 96.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004811/1.144, allocations: 1.405 MB / 0.5094 GB, free: 95.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.7e-05/1.144, allocations: 4 kB / 0.5095 GB, free: 95.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=441) (initialization): time 0.01866/1.163, allocations: 4.406 MB / 0.5138 GB, free: 91.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/1.163, allocations: 8 kB / 0.5138 GB, free: 91.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.906e-05/1.163, allocations: 4 kB / 0.5138 GB, free: 91.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008799/1.172, allocations: 1.357 MB / 0.5151 GB, free: 90.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00528/1.177, allocations: 0.5611 MB / 0.5156 GB, free: 90.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03518/1.213, allocations: 21.24 MB / 0.5364 GB, free: 67.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005216/1.218, allocations: 162.4 kB / 0.5365 GB, free: 67.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006783/1.219, allocations: 123.1 kB / 0.5367 GB, free: 67.71 MB / 378.7 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.005034/1.224, allocations: 2.203 MB / 0.5388 GB, free: 65.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001685/1.225, allocations: 0.8175 MB / 0.5396 GB, free: 64.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01802/1.243, allocations: 5.147 MB / 0.5446 GB, free: 59.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008525/1.252, allocations: 2.282 MB / 0.5469 GB, free: 57.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.401e-05/1.252, allocations: 4 kB / 0.5469 GB, free: 57.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-05/1.252, allocations: 15.94 kB / 0.5469 GB, free: 57.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03027/1.282, allocations: 10.78 MB / 0.5574 GB, free: 46.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.438e-05/1.283, allocations: 3.984 kB / 0.5574 GB, free: 46.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004661/1.287, allocations: 479.4 kB / 0.5579 GB, free: 45.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009129/1.296, allocations: 1.377 MB / 0.5592 GB, free: 44.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006555/1.297, allocations: 75.97 kB / 0.5593 GB, free: 44.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03123/1.328, allocations: 19.7 MB / 0.5785 GB, free: 23.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1493/1.478, allocations: 26.76 MB / 0.6047 GB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02567/1.504, allocations: 6.977 MB / 0.6115 GB, free: 5.113 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001936/1.506, allocations: 0.7521 MB / 0.6122 GB, free: 4.332 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001431/1.507, allocations: 68 kB / 0.6123 GB, free: 4.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00443/1.511, allocations: 139.9 kB / 0.6124 GB, free: 4.129 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001336/1.513, allocations: 283.4 kB / 0.6127 GB, free: 3.855 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004344/1.513, allocations: 104 kB / 0.6128 GB, free: 3.754 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.02399/1.537, allocations: 11.1 MB / 0.6236 GB, free: 8.699 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.537, allocations: 0 / 0.6236 GB, free: 8.699 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006493/1.544, allocations: 1.105 MB / 0.6247 GB, free: 7.598 MB / 410.7 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.02813/1.572, allocations: 8.072 MB / 0.6326 GB, free: 15.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01445/1.587, allocations: 4.746 MB / 0.6372 GB, free: 10.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.587, allocations: 0.5625 kB / 0.6372 GB, free: 10.58 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009403/1.596, allocations: 3.319 MB / 0.6405 GB, free: 7.145 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004629/1.601, allocations: 476.5 kB / 0.6409 GB, free: 6.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4203/2.021, allocations: 80.76 MB / 0.7198 GB, free: 80.39 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008417/2.03, allocations: 4.201 MB / 0.7239 GB, free: 76.17 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006602/2.036, allocations: 3.272 MB / 0.7271 GB, free: 72.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.753e-06/2.036, allocations: 3.938 kB / 0.7271 GB, free: 72.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.732/10.77, allocations: 0.8375 GB / 1.565 GB, free: 64.29 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)