Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.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.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 182.1 kB / 8.129 MB, free: 2.219 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.302/1.302, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0009753/0.0009754, allocations: 104.8 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09289/0.0939, allocations: 55.82 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.2686, allocations: 50.39 MB / 387 MB, free: 38.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08899/0.3577, allocations: 88.73 MB / 475.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002177/0.3579, allocations: 100.7 kB / 475.8 MB, free: 14.04 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.04625/0.4042, allocations: 16.87 MB / 492.7 MB, free: 13.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.4043, allocations: 12 kB / 492.7 MB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002246/0.4045, allocations: 94.78 kB / 492.8 MB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009071/0.4054, allocations: 0.5271 MB / 493.3 MB, free: 12.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.4055, allocations: 29.31 kB / 493.4 MB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-05/0.4056, allocations: 40 kB / 493.4 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009384/0.4066, allocations: 474.5 kB / 493.9 MB, free: 11.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009386/0.4075, allocations: 0.5244 MB / 494.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.4076, allocations: 0 / 494.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.041e-05/0.4076, allocations: 1.031 kB / 494.4 MB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.4076, allocations: 16 kB / 494.4 MB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004008/0.4117, allocations: 2.54 MB / 496.9 MB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005319/0.4122, allocations: 318.5 kB / 497.2 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005261/0.4127, allocations: 256.1 kB / 497.5 MB, free: 8.129 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.762e-05/0.4128, allocations: 20.48 kB / 497.5 MB, free: 8.109 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.4128, allocations: 39 kB / 497.6 MB, free: 8.062 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 1.844e-06/0.4128, allocations: 0 / 497.6 MB, free: 8.062 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.002166/0.415, allocations: 0.9489 MB / 498.5 MB, free: 7.109 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.4151, allocations: 56.06 kB / 498.6 MB, free: 7.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.4161, allocations: 0.7495 MB / 499.3 MB, free: 6.289 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/0.4162, allocations: 30.45 kB / 499.3 MB, free: 6.254 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.4164, allocations: 303.7 kB / 499.6 MB, free: 5.949 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.4165, allocations: 220.7 kB / 499.9 MB, free: 5.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.4166, allocations: 0 / 499.9 MB, free: 5.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.4167, allocations: 382.8 kB / 0.4885 GB, free: 5.348 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.4171, allocations: 193.5 kB / 0.4887 GB, free: 5.156 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.4175, allocations: 291.4 kB / 0.489 GB, free: 4.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004086/0.418, allocations: 227.7 kB / 0.4892 GB, free: 4.621 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.418, allocations: 4 kB / 0.4892 GB, free: 4.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001056/0.419, allocations: 0.6004 MB / 0.4898 GB, free: 4.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.4191, allocations: 4 kB / 0.4898 GB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.4191, allocations: 4 kB / 0.4898 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.4191, allocations: 4 kB / 0.4898 GB, free: 3.996 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009813/0.4201, allocations: 204 kB / 0.49 GB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.4201, allocations: 11.94 kB / 0.49 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006713/0.4208, allocations: 55.86 kB / 0.49 GB, free: 3.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-05/0.4209, allocations: 27.98 kB / 0.4901 GB, free: 3.703 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.0001229/0.421, allocations: 115.7 kB / 0.4902 GB, free: 3.586 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001369/0.4211, allocations: 75.06 kB / 0.4902 GB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009799/0.4221, allocations: 0.531 MB / 0.4908 GB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.4221, allocations: 8 kB / 0.4908 GB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4221, allocations: 4 kB / 0.4908 GB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.4222, allocations: 7.969 kB / 0.4908 GB, free: 2.945 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002629/0.4248, allocations: 1.736 MB / 0.4925 GB, free: 1.098 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.4248, allocations: 4.031 kB / 0.4925 GB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007535/0.4256, allocations: 159.8 kB / 0.4926 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/0.4256, allocations: 8 kB / 0.4926 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.03e-05/0.4256, allocations: 7.984 kB / 0.4927 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.4257, allocations: 4 kB / 0.4927 GB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/0.4257, allocations: 7.938 kB / 0.4927 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009199/0.4266, allocations: 0.78 MB / 0.4934 GB, free: 16 kB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09762/0.5242, allocations: 1.163 MB / 0.4946 GB, free: 131.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/0.5246, allocations: 237.4 kB / 0.4948 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.5247, allocations: 3.812 kB / 0.4948 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005888/0.5253, allocations: 53.75 kB / 0.4948 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.101e-05/0.5254, allocations: 42.55 kB / 0.4949 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.75e-05/0.5254, allocations: 19.48 kB / 0.4949 GB, free: 131.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006076/0.526, allocations: 0.5914 MB / 0.4955 GB, free: 131.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001225/0.5273, allocations: 159.5 kB / 0.4956 GB, free: 131.2 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.0005559/0.5278, allocations: 294.5 kB / 0.4959 GB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007035/0.5286, allocations: 490.4 kB / 0.4964 GB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.5286, allocations: 0 / 0.4964 GB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003449/0.5289, allocations: 266.5 kB / 0.4966 GB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.5295, allocations: 96.8 kB / 0.4967 GB, free: 131.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.5314, allocations: 1.192 MB / 0.4979 GB, free: 130.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005982/0.5321, allocations: 1.058 MB / 0.4989 GB, free: 130 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.5321, allocations: 0 / 0.4989 GB, free: 130 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_fmu --startTime=-4 --stopTime=4 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1)