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: "" <> 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 185.6 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 221.4 MB / 229.9 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009418/0.0009418, allocations: 104.6 kB / 280.8 MB, free: 1.297 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08899/0.08996, allocations: 55.82 MB / 336.6 MB, free: 9.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.265, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09584/0.3608, allocations: 94.88 MB / 481.9 MB, free: 7.875 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.3611, allocations: 95.88 kB / 482 MB, free: 7.781 MB / 362.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.3372/0.6983, allocations: 83.64 MB / 0.5524 GB, free: 55.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.6984, allocations: 12.75 kB / 0.5524 GB, free: 55.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001591/0.7, allocations: 0.8523 MB / 0.5532 GB, free: 55.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007265/0.7073, allocations: 3.558 MB / 0.5567 GB, free: 51.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.422e-05/0.7074, allocations: 68 kB / 0.5568 GB, free: 51.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000288/0.7077, allocations: 127.8 kB / 0.5569 GB, free: 51.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003188/0.7109, allocations: 1.676 MB / 0.5585 GB, free: 49.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002902/0.7138, allocations: 1.729 MB / 0.5602 GB, free: 47.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.509e-05/0.7138, allocations: 0 / 0.5602 GB, free: 47.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001731/0.714, allocations: 8.453 kB / 0.5602 GB, free: 47.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.323e-05/0.7141, allocations: 52 kB / 0.5603 GB, free: 47.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01629/0.7304, allocations: 9.746 MB / 0.5698 GB, free: 37.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002206/0.7326, allocations: 1.325 MB / 0.5711 GB, free: 36.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001766/0.7344, allocations: 1.181 MB / 0.5722 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001275/0.7345, allocations: 42.27 kB / 0.5723 GB, free: 35.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0015/0.736, allocations: 1.031 MB / 0.5733 GB, free: 34.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 4.288e-06/0.736, allocations: 0 / 0.5733 GB, free: 34.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=382): time 0.039/0.7751, allocations: 16.15 MB / 0.589 GB, free: 17.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.301e-05/0.7752, allocations: 274.6 kB / 0.5893 GB, free: 17.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1242/0.8994, allocations: 12.88 MB / 0.6019 GB, free: 4.527 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005738/0.9, allocations: 29.7 kB / 0.6019 GB, free: 4.492 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001784/0.9018, allocations: 1.44 MB / 0.6033 GB, free: 3.039 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001344/0.9032, allocations: 1.209 MB / 0.6045 GB, free: 1.812 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004039/0.9036, allocations: 4 kB / 0.6045 GB, free: 1.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.9037, allocations: 437.3 kB / 0.6049 GB, free: 1.375 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00221/0.906, allocations: 1.175 MB / 0.6061 GB, free: 204 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002718/0.9087, allocations: 1.488 MB / 0.6075 GB, free: 14.64 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002781/0.9115, allocations: 1.359 MB / 0.6088 GB, free: 13.28 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.9115, allocations: 0 / 0.6088 GB, free: 13.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=443) (initialization): time 0.01244/0.924, allocations: 4.912 MB / 0.6136 GB, free: 8.324 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.924, allocations: 4 kB / 0.6136 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.924, allocations: 7.938 kB / 0.6137 GB, free: 8.312 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00685/0.9309, allocations: 1.431 MB / 0.6151 GB, free: 6.855 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003612/0.9345, allocations: 0.5695 MB / 0.6156 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02847/0.963, allocations: 21.25 MB / 0.6364 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00392/0.967, allocations: 95.89 kB / 0.6364 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004138/0.9674, allocations: 116 kB / 0.6366 GB, free: 15.77 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference of ports" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 304 * 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%) 4,(1,100.0%) 4,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 42,3 55} Notification: Performance of prepare postOptimizeDAE: time 0.0005949/0.968, allocations: 157.2 kB / 0.6367 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00145/0.9695, allocations: 0.8175 MB / 0.6375 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01216/0.9816, allocations: 4.956 MB / 0.6423 GB, free: 9.777 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.17e-05/0.9817, allocations: 36 kB / 0.6424 GB, free: 9.742 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.594e-05/0.9817, allocations: 8 kB / 0.6424 GB, free: 9.734 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.921e-05/0.9817, allocations: 19.94 kB / 0.6424 GB, free: 9.715 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1378/1.12, allocations: 12.92 MB / 0.655 GB, free: 138.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/1.12, allocations: 7.5 kB / 0.655 GB, free: 138.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0029/1.123, allocations: 0.5085 MB / 0.6555 GB, free: 138.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005606/1.128, allocations: 1.302 MB / 0.6568 GB, free: 138.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003135/1.128, allocations: 31.88 kB / 0.6568 GB, free: 138.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02064/1.149, allocations: 19.03 MB / 0.6754 GB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02688/1.176, allocations: 11.7 MB / 0.6868 GB, free: 125.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01358/1.19, allocations: 7.347 MB / 0.694 GB, free: 121.9 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01646/1.206, allocations: 9.733 MB / 0.7035 GB, free: 116.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003391/1.21, allocations: 1.588 MB / 0.7051 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00177/1.211, allocations: 6.625 kB / 0.7051 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00328/1.215, allocations: 93.36 kB / 0.7052 GB, free: 116.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004707/1.215, allocations: 198.9 kB / 0.7053 GB, free: 116 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002961/1.216, allocations: 105.2 kB / 0.7054 GB, free: 116 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.01651/1.232, allocations: 10.29 MB / 0.7155 GB, free: 112 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006463/1.239, allocations: 1.442 MB / 0.7169 GB, free: 112 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,$STATESET140387801729431.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 259 * 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%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 47,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.001154/1.24, allocations: 372.7 kB / 0.7173 GB, free: 111.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006548/1.246, allocations: 4.28 MB / 0.7214 GB, free: 107.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.246, allocations: 7.219 kB / 0.7214 GB, free: 107.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004089/1.25, allocations: 2.88 MB / 0.7243 GB, free: 105 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003037/1.253, allocations: 396.3 kB / 0.7246 GB, free: 104.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/1.279, allocations: 16.72 MB / 0.741 GB, free: 89.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005233/1.284, allocations: 4.536 MB / 0.7454 GB, free: 86.54 MB / 426.7 MB Notification: Performance of SimCode: time 9.42e-07/1.284, allocations: 7.938 kB / 0.7454 GB, free: 86.54 MB / 426.7 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)