Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.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.ForceStrokeBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",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.001515/0.001515, allocations: 205.8 kB / 8.544 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.1/1.1, allocations: 225.5 MB / 234.4 MB, free: 3.391 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008793/0.0008793, allocations: 93.64 kB / 286.3 MB, free: 5.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08805/0.08895, allocations: 56.91 MB / 343.2 MB, free: 8.641 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07946/0.1684, allocations: 51.48 MB / 394.7 MB, free: 5.121 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.201/0.3695, allocations: 89.94 MB / 484.7 MB, free: 3.289 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.3697, allocations: 86.45 kB / 484.7 MB, free: 3.246 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.04145/0.4112, allocations: 17.6 MB / 0.4906 GB, free: 4.594 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.4112, allocations: 11.94 kB / 0.4906 GB, free: 4.582 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004832/0.4117, allocations: 122.8 kB / 0.4907 GB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007678/0.4125, allocations: 0.5491 MB / 0.4912 GB, free: 3.965 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.419e-05/0.4126, allocations: 33.25 kB / 0.4913 GB, free: 3.938 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.263e-05/0.4127, allocations: 32 kB / 0.4913 GB, free: 3.906 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007975/0.4135, allocations: 472.6 kB / 0.4917 GB, free: 3.625 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000819/0.4143, allocations: 0.5179 MB / 0.4922 GB, free: 3.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.4144, allocations: 4 kB / 0.4923 GB, free: 3.246 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.647e-05/0.4144, allocations: 7.938 kB / 0.4923 GB, free: 3.238 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.931e-05/0.4145, allocations: 12 kB / 0.4923 GB, free: 3.227 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003527/0.418, allocations: 2.54 MB / 0.4948 GB, free: 1.211 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004668/0.4185, allocations: 312 kB / 0.4951 GB, free: 1.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004495/0.4189, allocations: 263.1 kB / 0.4953 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.813e-05/0.419, allocations: 11.23 kB / 0.4953 GB, free: 0.8281 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.419, allocations: 37.62 kB / 0.4953 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 1.452e-06/0.419, allocations: 0 / 0.4953 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.001991/0.421, allocations: 0.9516 MB / 0.4963 GB, free: 36 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/0.4211, allocations: 60.06 kB / 0.4963 GB, free: 15.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009062/0.422, allocations: 0.7558 MB / 0.4971 GB, free: 15.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.422, allocations: 29.7 kB / 0.4971 GB, free: 15.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.4222, allocations: 302.7 kB / 0.4974 GB, free: 15.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.4223, allocations: 215.2 kB / 0.4976 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.107e-05/0.4224, allocations: 0 / 0.4976 GB, free: 14.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4225, allocations: 395.7 kB / 0.498 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003146/0.4228, allocations: 186.4 kB / 0.4981 GB, free: 14.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003707/0.4232, allocations: 288.8 kB / 0.4984 GB, free: 14.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000378/0.4236, allocations: 223.3 kB / 0.4986 GB, free: 14.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4236, allocations: 4 kB / 0.4986 GB, free: 14.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.0009695/0.4246, allocations: 0.6048 MB / 0.4992 GB, free: 13.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.4246, allocations: 7.984 kB / 0.4992 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.4246, allocations: 0 / 0.4992 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.4246, allocations: 8 kB / 0.4992 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009151/0.4256, allocations: 198.2 kB / 0.4994 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.4256, allocations: 7.938 kB / 0.4994 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005846/0.4262, allocations: 63.86 kB / 0.4995 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.979e-05/0.4262, allocations: 29.98 kB / 0.4995 GB, free: 13.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 88 * 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.0001148/0.4264, allocations: 109.4 kB / 0.4996 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.4265, allocations: 77.25 kB / 0.4997 GB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009551/0.4275, allocations: 0.5267 MB / 0.5002 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.4275, allocations: 11.94 kB / 0.5002 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4275, allocations: 4 kB / 0.5002 GB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.4275, allocations: 3.984 kB / 0.5002 GB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002453/0.43, allocations: 1.743 MB / 0.5019 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.43, allocations: 4 kB / 0.502 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006876/0.4307, allocations: 160.1 kB / 0.5021 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.4307, allocations: 4 kB / 0.5021 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.4307, allocations: 4 kB / 0.5021 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.797e-06/0.4307, allocations: 19.92 kB / 0.5021 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.4308, allocations: 0 / 0.5021 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008989/0.4317, allocations: 0.7828 MB / 0.5029 GB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009976/0.4327, allocations: 1.166 MB / 0.504 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003038/0.433, allocations: 240 kB / 0.5043 GB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.4331, allocations: 8 kB / 0.5043 GB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005406/0.4336, allocations: 51.95 kB / 0.5043 GB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.01e-05/0.4337, allocations: 44.44 kB / 0.5044 GB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.023e-05/0.4338, allocations: 21.31 kB / 0.5044 GB, free: 8.316 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006685/0.4345, allocations: 0.6007 MB / 0.505 GB, free: 7.723 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001132/0.4356, allocations: 159.9 kB / 0.5051 GB, free: 7.566 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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.0005531/0.4362, allocations: 298.3 kB / 0.5054 GB, free: 7.355 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007822/0.4369, allocations: 493.9 kB / 0.5059 GB, free: 6.871 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.437, allocations: 0 / 0.5059 GB, free: 6.871 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003944/0.4374, allocations: 266.8 kB / 0.5061 GB, free: 6.613 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005321/0.4379, allocations: 87.08 kB / 0.5062 GB, free: 6.527 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.44, allocations: 1.2 MB / 0.5074 GB, free: 5.273 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008071/0.4409, allocations: 1.062 MB / 0.5084 GB, free: 4.18 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4409, allocations: 0 / 0.5084 GB, free: 4.18 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_fmu --startTime=-4 --stopTime=4 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat does not exist to compare? outputFormat=mat