Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009989/0.0009989, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.114/1.114, allocations: 225.5 MB / 234.4 MB, free: 3.375 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008386/0.0008386, allocations: 98.61 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08453/0.08539, allocations: 56.9 MB / 343.2 MB, free: 8.672 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07396/0.1594, allocations: 51.48 MB / 394.7 MB, free: 5.148 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2019/0.3613, allocations: 95.83 MB / 490.5 MB, free: 13.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.3615, allocations: 88.59 kB / 490.6 MB, free: 13.37 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.1367/0.4982, allocations: 54.64 MB / 0.5325 GB, free: 12.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.4983, allocations: 8 kB / 0.5325 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001253/0.4995, allocations: 352.2 kB / 0.5328 GB, free: 11.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002824/0.5024, allocations: 1.377 MB / 0.5342 GB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.089e-05/0.5025, allocations: 68 kB / 0.5343 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003467/0.5028, allocations: 124 kB / 0.5344 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003369/0.5062, allocations: 1.676 MB / 0.536 GB, free: 8.527 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003006/0.5092, allocations: 1.506 MB / 0.5375 GB, free: 6.973 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.287e-05/0.5093, allocations: 0.9375 kB / 0.5375 GB, free: 6.973 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001707/0.5095, allocations: 0 / 0.5375 GB, free: 6.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.081e-05/0.5095, allocations: 52 kB / 0.5375 GB, free: 6.922 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01177/0.5213, allocations: 7.355 MB / 0.5447 GB, free: 15.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001972/0.5233, allocations: 1.236 MB / 0.5459 GB, free: 14.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001782/0.5251, allocations: 1.151 MB / 0.547 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001301/0.5252, allocations: 45.95 kB / 0.5471 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.5252, allocations: 60.5 kB / 0.5471 GB, free: 12.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=240): time 3.507e-06/0.5253, allocations: 0 / 0.5471 GB, free: 12.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=372): time 0.03465/0.5599, allocations: 12.21 MB / 0.5591 GB, free: 0.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/0.56, allocations: 90.33 kB / 0.5592 GB, free: 408 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002239/0.5622, allocations: 1.586 MB / 0.5607 GB, free: 14.81 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001781/0.5624, allocations: 25.7 kB / 0.5607 GB, free: 14.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.5628, allocations: 0.6693 MB / 0.5614 GB, free: 14.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007805/0.5636, allocations: 1.177 MB / 0.5625 GB, free: 12.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001759/0.5637, allocations: 0 / 0.5625 GB, free: 12.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.5639, allocations: 437.1 kB / 0.5629 GB, free: 12.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/0.5659, allocations: 1.163 MB / 0.5641 GB, free: 11.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002209/0.5682, allocations: 1.424 MB / 0.5655 GB, free: 9.836 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002315/0.5705, allocations: 1.336 MB / 0.5668 GB, free: 8.492 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.5705, allocations: 0 / 0.5668 GB, free: 8.492 MB / 442.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01/0.5805, allocations: 4.25 MB / 0.5709 GB, free: 4.195 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.5805, allocations: 4 kB / 0.5709 GB, free: 4.191 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.5806, allocations: 4 kB / 0.5709 GB, free: 4.188 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005933/0.5865, allocations: 1.375 MB / 0.5723 GB, free: 2.793 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003107/0.5896, allocations: 0.5781 MB / 0.5728 GB, free: 2.215 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1206/0.7103, allocations: 18.43 MB / 0.5908 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002436/0.7127, allocations: 81.81 kB / 0.5909 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002979/0.713, allocations: 115 kB / 0.591 GB, free: 138.2 MB / 442.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.0004664/0.7135, allocations: 147.3 kB / 0.5912 GB, free: 138.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003785/0.7139, allocations: 265.8 kB / 0.5914 GB, free: 138 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008455/0.7224, allocations: 4.133 MB / 0.5955 GB, free: 137.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/0.7224, allocations: 41.66 kB / 0.5955 GB, free: 137.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.7224, allocations: 2.5 kB / 0.5955 GB, free: 137.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.389e-05/0.7224, allocations: 16.78 kB / 0.5955 GB, free: 137.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01381/0.7363, allocations: 8.719 MB / 0.604 GB, free: 135.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.7363, allocations: 3.5 kB / 0.604 GB, free: 135.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002574/0.7389, allocations: 0.5146 MB / 0.6045 GB, free: 135.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004718/0.7436, allocations: 1.267 MB / 0.6058 GB, free: 135.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002284/0.7439, allocations: 23.61 kB / 0.6058 GB, free: 135.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01749/0.7613, allocations: 16.54 MB / 0.6219 GB, free: 122.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02373/0.7851, allocations: 11.82 MB / 0.6335 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01162/0.7967, allocations: 6.248 MB / 0.6396 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01297/0.8097, allocations: 8.473 MB / 0.6479 GB, free: 108.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/0.8109, allocations: 0.6944 MB / 0.6485 GB, free: 108 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004173/0.8113, allocations: 13.64 kB / 0.6486 GB, free: 108 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001994/0.8133, allocations: 95.92 kB / 0.6486 GB, free: 108 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003179/0.8137, allocations: 189.4 kB / 0.6488 GB, free: 108 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/0.8139, allocations: 101.1 kB / 0.6489 GB, free: 108 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001381/0.8153, allocations: 1.211 MB / 0.6501 GB, free: 107.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003083/0.8184, allocations: 0.8155 MB / 0.6509 GB, free: 107.4 MB / 442.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.000725/0.8191, allocations: 338.3 kB / 0.6512 GB, free: 107.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005548/0.8247, allocations: 4.003 MB / 0.6551 GB, free: 105.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.8247, allocations: 3.906 kB / 0.6551 GB, free: 105.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003492/0.8282, allocations: 2.644 MB / 0.6577 GB, free: 103.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.8296, allocations: 232.4 kB / 0.6579 GB, free: 103.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009361/0.839, allocations: 5.362 MB / 0.6632 GB, free: 101.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002065/0.8411, allocations: 2.026 MB / 0.6652 GB, free: 100.4 MB / 442.7 MB Notification: Performance of SimCode: time 6.21e-07/0.8411, allocations: 0 / 0.6652 GB, free: 100.4 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic_res.mat does not exist to compare? outputFormat=mat