Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009215/0.0009215, allocations: 175.3 kB / 8.476 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.032/1.032, allocations: 205.2 MB / 214.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008856/0.0008856, allocations: 98.55 kB / 262.1 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08332/0.08424, allocations: 52.98 MB / 315.1 MB, free: 8.57 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1664/0.2506, allocations: 47.56 MB / 362.6 MB, free: 45.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08497/0.3356, allocations: 88.13 MB / 450.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.3359, allocations: 90.28 kB / 450.8 MB, free: 13.69 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Magnetic/FluxTubes.mo:1363:11-1363:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. 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.05913/0.3951, allocations: 22.95 MB / 473.8 MB, free: 6.699 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3951, allocations: 8 kB / 473.8 MB, free: 6.691 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003547/0.3955, allocations: 131.6 kB / 473.9 MB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.3969, allocations: 0.6531 MB / 474.6 MB, free: 5.863 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.397, allocations: 46 kB / 474.6 MB, free: 5.816 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.3972, allocations: 60 kB / 474.7 MB, free: 5.758 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001557/0.3988, allocations: 0.7225 MB / 475.4 MB, free: 5.035 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.4003, allocations: 0.7984 MB / 476.2 MB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.603e-05/0.4004, allocations: 3.906 kB / 476.2 MB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.328e-05/0.4005, allocations: 3.938 kB / 476.2 MB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.999e-05/0.4005, allocations: 24 kB / 476.2 MB, free: 4.195 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00631/0.4068, allocations: 3.702 MB / 479.9 MB, free: 316 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001564/0.4084, allocations: 0.5689 MB / 480.5 MB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006033/0.409, allocations: 358.6 kB / 480.9 MB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.837e-05/0.4091, allocations: 12.55 kB / 480.9 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.4091, allocations: 39.12 kB / 480.9 MB, free: 15.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 2.935e-06/0.4091, allocations: 0 / 480.9 MB, free: 15.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.0029/0.412, allocations: 1.391 MB / 482.3 MB, free: 13.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.4121, allocations: 85.55 kB / 482.4 MB, free: 13.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009224/0.413, allocations: 0.699 MB / 483.1 MB, free: 13.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.403e-05/0.4131, allocations: 25.7 kB / 483.1 MB, free: 13.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.4133, allocations: 422.8 kB / 483.5 MB, free: 12.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002069/0.4135, allocations: 275.9 kB / 483.8 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.566e-05/0.4136, allocations: 0 / 483.8 MB, free: 12.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4137, allocations: 398.7 kB / 484.2 MB, free: 11.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004936/0.4142, allocations: 278 kB / 484.5 MB, free: 11.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006151/0.4149, allocations: 437.1 kB / 484.9 MB, free: 11.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005377/0.4154, allocations: 330.8 kB / 485.2 MB, free: 10.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.4154, allocations: 7.906 kB / 485.2 MB, free: 10.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.00139/0.4168, allocations: 0.8228 MB / 486 MB, free: 10.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.4168, allocations: 8 kB / 486 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.4169, allocations: 8.438 kB / 486.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.4169, allocations: 12 kB / 486.1 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/0.4185, allocations: 371.5 kB / 486.4 MB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.4185, allocations: 11.91 kB / 486.4 MB, free: 9.664 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000936/0.4195, allocations: 107.9 kB / 486.5 MB, free: 9.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.399e-05/0.4196, allocations: 39.98 kB / 486.6 MB, free: 9.52 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.0001585/0.4197, allocations: 128.7 kB / 486.7 MB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.4199, allocations: 91.62 kB / 486.8 MB, free: 9.297 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006299/0.4205, allocations: 325.4 kB / 487.1 MB, free: 8.969 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.4206, allocations: 8 kB / 487.1 MB, free: 8.961 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.4206, allocations: 3.984 kB / 487.1 MB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.4206, allocations: 3.984 kB / 487.1 MB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003866/0.4245, allocations: 2.67 MB / 489.8 MB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/0.4245, allocations: 11.94 kB / 489.8 MB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.4256, allocations: 287.7 kB / 490.1 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.531e-05/0.4256, allocations: 19.94 kB / 490.1 MB, free: 5.789 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.329e-05/0.4257, allocations: 23.98 kB / 490.1 MB, free: 5.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.334e-05/0.4257, allocations: 19.92 kB / 490.2 MB, free: 5.746 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.4257, allocations: 15.94 kB / 490.2 MB, free: 5.73 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001369/0.4271, allocations: 1.619 MB / 491.8 MB, free: 3.672 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001516/0.4286, allocations: 2.001 MB / 493.8 MB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/0.4288, allocations: 195.9 kB / 494 MB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.429, allocations: 27.92 kB / 494 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007886/0.4298, allocations: 71.94 kB / 494.1 MB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/0.4299, allocations: 83.67 kB / 494.2 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-05/0.43, allocations: 36 kB / 494.2 MB, free: 0.8047 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006133/0.4306, allocations: 0.5265 MB / 494.7 MB, free: 288 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.00137/0.432, allocations: 196 kB / 494.9 MB, free: 92 kB / 378.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.00058/0.4326, allocations: 310.8 kB / 495.2 MB, free: 15.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001047/0.4336, allocations: 0.6754 MB / 495.9 MB, free: 15.12 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.4336, allocations: 4 kB / 495.9 MB, free: 15.12 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005824/0.4342, allocations: 375.3 kB / 496.3 MB, free: 14.76 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008746/0.4351, allocations: 162.8 kB / 496.4 MB, free: 14.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.4379, allocations: 1.535 MB / 498 MB, free: 12.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009482/0.4389, allocations: 1.156 MB / 499.1 MB, free: 11.71 MB / 394.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4389, allocations: 4 kB / 499.1 MB, free: 11.71 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1)