Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.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.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",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.001493/0.001493, allocations: 184 kB / 8.138 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.453/1.453, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.00093/0.00093, allocations: 102.3 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09571/0.09667, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.2897, allocations: 50.4 MB / 387 MB, free: 37.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1004/0.3902, allocations: 94.45 MB / 481.5 MB, free: 8.254 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.3905, allocations: 83.95 kB / 481.6 MB, free: 8.172 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: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.2747/0.6652, allocations: 53.02 MB / 0.522 GB, free: 87.27 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.6653, allocations: 8.656 kB / 0.5221 GB, free: 87.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007195/0.666, allocations: 296.4 kB / 0.5223 GB, free: 86.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002746/0.6687, allocations: 1.332 MB / 0.5236 GB, free: 85.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.752e-05/0.6688, allocations: 68 kB / 0.5237 GB, free: 85.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003634/0.6692, allocations: 127.8 kB / 0.5238 GB, free: 85.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003301/0.6725, allocations: 1.66 MB / 0.5254 GB, free: 83.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002935/0.6755, allocations: 1.487 MB / 0.5269 GB, free: 82.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.522e-05/0.6755, allocations: 6.344 kB / 0.5269 GB, free: 82.22 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001685/0.6757, allocations: 4 kB / 0.5269 GB, free: 82.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.141e-05/0.6757, allocations: 52 kB / 0.527 GB, free: 82.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01198/0.6877, allocations: 7.284 MB / 0.5341 GB, free: 74.72 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001994/0.6898, allocations: 1.229 MB / 0.5353 GB, free: 73.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.6916, allocations: 1.163 MB / 0.5364 GB, free: 72.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001369/0.6917, allocations: 41.8 kB / 0.5364 GB, free: 72.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.6918, allocations: 56.56 kB / 0.5365 GB, free: 72.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=240): time 4.468e-06/0.6918, allocations: 0 / 0.5365 GB, free: 72.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=372): time 0.03611/0.7279, allocations: 12.12 MB / 0.5483 GB, free: 60.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.7279, allocations: 94.23 kB / 0.5484 GB, free: 59.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002339/0.7303, allocations: 1.494 MB / 0.5499 GB, free: 58.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002891/0.7306, allocations: 29.7 kB / 0.5499 GB, free: 58.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002653/0.7309, allocations: 0.6647 MB / 0.5506 GB, free: 57.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00073/0.7316, allocations: 1.17 MB / 0.5517 GB, free: 56.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002291/0.7318, allocations: 0 / 0.5517 GB, free: 56.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.732, allocations: 437 kB / 0.5521 GB, free: 56.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/0.734, allocations: 1.147 MB / 0.5532 GB, free: 54.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002146/0.7362, allocations: 1.421 MB / 0.5546 GB, free: 53.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002299/0.7385, allocations: 1.316 MB / 0.5559 GB, free: 52.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.7385, allocations: 0.6562 kB / 0.5559 GB, free: 52.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009954/0.7484, allocations: 4.215 MB / 0.56 GB, free: 47.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.7485, allocations: 4 kB / 0.56 GB, free: 47.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.7485, allocations: 4 kB / 0.56 GB, free: 47.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005958/0.7545, allocations: 1.356 MB / 0.5614 GB, free: 46.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003223/0.7577, allocations: 0.5812 MB / 0.5619 GB, free: 45.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02322/0.7809, allocations: 18.36 MB / 0.5799 GB, free: 26.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00296/0.7839, allocations: 80.06 kB / 0.5799 GB, free: 26.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004413/0.7844, allocations: 115.9 kB / 0.5801 GB, free: 26.64 MB / 378.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: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (309): * Single equations (assignments): 302 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 55,3 42} Notification: Performance of prepare postOptimizeDAE: time 0.0006377/0.785, allocations: 149 kB / 0.5802 GB, free: 26.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/0.7856, allocations: 260.8 kB / 0.5804 GB, free: 26.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009513/0.7951, allocations: 4.094 MB / 0.5844 GB, free: 22.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.392e-05/0.7951, allocations: 39.98 kB / 0.5845 GB, free: 22.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.7952, allocations: 7.938 kB / 0.5845 GB, free: 22.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.801e-05/0.7952, allocations: 19.84 kB / 0.5845 GB, free: 22.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0155/0.8107, allocations: 8.664 MB / 0.593 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.8107, allocations: 4 kB / 0.593 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002869/0.8136, allocations: 0.5033 MB / 0.5935 GB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005414/0.819, allocations: 1.262 MB / 0.5947 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002531/0.8193, allocations: 27.97 kB / 0.5947 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02057/0.8399, allocations: 16.48 MB / 0.6108 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0292/0.8691, allocations: 11.74 MB / 0.6223 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01407/0.8832, allocations: 6.214 MB / 0.6283 GB, free: 7.711 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01636/0.8996, allocations: 8.434 MB / 0.6366 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001651/0.9013, allocations: 0.6812 MB / 0.6372 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006901/0.9021, allocations: 7.984 kB / 0.6373 GB, free: 14.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002529/0.9046, allocations: 91.92 kB / 0.6373 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004987/0.9051, allocations: 198.4 kB / 0.6375 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002966/0.9054, allocations: 99.97 kB / 0.6376 GB, free: 13.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001985/0.9074, allocations: 1.14 MB / 0.6387 GB, free: 12.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003861/0.9113, allocations: 0.7891 MB / 0.6395 GB, free: 12.03 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET1.x,advancedSolenoid.coil1.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (261): * Single equations (assignments): 254 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,3 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008973/0.9122, allocations: 330.5 kB / 0.6398 GB, free: 11.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007261/0.9195, allocations: 3.989 MB / 0.6437 GB, free: 7.688 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.9195, allocations: 0.875 kB / 0.6437 GB, free: 7.688 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004436/0.9239, allocations: 2.64 MB / 0.6463 GB, free: 4.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.9256, allocations: 237.7 kB / 0.6465 GB, free: 4.746 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1193/1.045, allocations: 5.308 MB / 0.6517 GB, free: 152.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00221/1.047, allocations: 1.989 MB / 0.6537 GB, free: 151.7 MB / 426.7 MB Notification: Performance of SimCode: time 6.72e-07/1.047, allocations: 0 / 0.6537 GB, free: 151.7 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1)