Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",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.001127/0.001127, allocations: 199.5 kB / 8.54 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.117/1.117, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008473/0.0008473, allocations: 94.66 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08947/0.09035, allocations: 56.91 MB / 343.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07794/0.1683, allocations: 51.48 MB / 394.7 MB, free: 5.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2062/0.3745, allocations: 92.19 MB / 486.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.3748, allocations: 91.88 kB / 487 MB, free: 0.9336 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.05933/0.4341, allocations: 24.31 MB / 0.4993 GB, free: 12.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.4342, allocations: 11.98 kB / 0.4993 GB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000528/0.4347, allocations: 154.4 kB / 0.4995 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.4357, allocations: 0.6606 MB / 0.5001 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/0.4358, allocations: 42 kB / 0.5002 GB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.436, allocations: 60 kB / 0.5002 GB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001283/0.4372, allocations: 0.7304 MB / 0.5009 GB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.4386, allocations: 0.7973 MB / 0.5017 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.4386, allocations: 0 / 0.5017 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.149e-05/0.4387, allocations: 1.969 kB / 0.5017 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.119e-05/0.4387, allocations: 27.94 kB / 0.5017 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00551/0.4443, allocations: 3.705 MB / 0.5054 GB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/0.4456, allocations: 0.5593 MB / 0.5059 GB, free: 7.207 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005733/0.4462, allocations: 358.7 kB / 0.5063 GB, free: 6.852 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.944e-05/0.4462, allocations: 12.55 kB / 0.5063 GB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.4463, allocations: 39.12 kB / 0.5063 GB, free: 6.793 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 1.954e-06/0.4463, allocations: 0 / 0.5063 GB, free: 6.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.002788/0.4491, allocations: 1.406 MB / 0.5077 GB, free: 5.383 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.4491, allocations: 85.55 kB / 0.5078 GB, free: 5.281 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000937/0.4501, allocations: 0.7029 MB / 0.5084 GB, free: 4.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.59e-05/0.4501, allocations: 29.7 kB / 0.5085 GB, free: 4.535 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.4504, allocations: 418.8 kB / 0.5089 GB, free: 4.117 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.4506, allocations: 271.9 kB / 0.5091 GB, free: 3.848 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.429e-05/0.4506, allocations: 0 / 0.5091 GB, free: 3.848 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.4508, allocations: 398.7 kB / 0.5095 GB, free: 3.449 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004848/0.4513, allocations: 278 kB / 0.5098 GB, free: 3.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005749/0.4519, allocations: 433.4 kB / 0.5102 GB, free: 2.699 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005216/0.4524, allocations: 319 kB / 0.5105 GB, free: 2.387 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4524, allocations: 8 kB / 0.5105 GB, free: 2.379 MB / 378.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001384/0.4538, allocations: 0.8396 MB / 0.5113 GB, free: 1.531 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.4538, allocations: 6.031 kB / 0.5113 GB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4538, allocations: 4.5 kB / 0.5113 GB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.4539, allocations: 15.91 kB / 0.5113 GB, free: 1.508 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.4555, allocations: 363.5 kB / 0.5117 GB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.4555, allocations: 15.94 kB / 0.5117 GB, free: 1.137 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009137/0.4564, allocations: 111.9 kB / 0.5118 GB, free: 1.027 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.037e-05/0.4565, allocations: 39.98 kB / 0.5119 GB, free: 0.9883 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.4567, allocations: 124.7 kB / 0.512 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.4568, allocations: 90.88 kB / 0.5121 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006225/0.4575, allocations: 333.4 kB / 0.5124 GB, free: 444 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4575, allocations: 9.781 kB / 0.5124 GB, free: 436 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4575, allocations: 0 / 0.5124 GB, free: 436 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.4575, allocations: 3.984 kB / 0.5124 GB, free: 432 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003821/0.4613, allocations: 2.663 MB / 0.515 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.4614, allocations: 12 kB / 0.515 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.4625, allocations: 291.7 kB / 0.5153 GB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.517e-05/0.4625, allocations: 16 kB / 0.5153 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.784e-05/0.4626, allocations: 19.89 kB / 0.5153 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.097e-05/0.4626, allocations: 19.94 kB / 0.5153 GB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-05/0.4626, allocations: 19.88 kB / 0.5154 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001408/0.464, allocations: 1.628 MB / 0.5169 GB, free: 11.14 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001498/0.4655, allocations: 2.008 MB / 0.5189 GB, free: 8.695 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.4657, allocations: 199.9 kB / 0.5191 GB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.4659, allocations: 19.98 kB / 0.5191 GB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007853/0.4667, allocations: 75.89 kB / 0.5192 GB, free: 8.387 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.4668, allocations: 83.67 kB / 0.5193 GB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.363e-05/0.4669, allocations: 39.98 kB / 0.5193 GB, free: 8.266 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0006133/0.4675, allocations: 0.5304 MB / 0.5198 GB, free: 7.738 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001375/0.4689, allocations: 207.9 kB / 0.52 GB, free: 7.535 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005929/0.4695, allocations: 304.8 kB / 0.5203 GB, free: 7.309 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.4705, allocations: 0.6715 MB / 0.521 GB, free: 6.637 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.4706, allocations: 4 kB / 0.521 GB, free: 6.633 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005984/0.4712, allocations: 383.3 kB / 0.5213 GB, free: 6.262 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008679/0.472, allocations: 169.5 kB / 0.5215 GB, free: 6.105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.4748, allocations: 1.551 MB / 0.523 GB, free: 4.383 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009267/0.4758, allocations: 1.156 MB / 0.5241 GB, free: 3.203 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4758, allocations: 4 kB / 0.5241 GB, free: 3.199 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat