Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring",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.001133/0.001133, allocations: 178.2 kB / 8.521 MB, free: 1.832 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.162/1.162, allocations: 221.4 MB / 230.3 MB, free: 7.664 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.00094/0.00094, allocations: 98.53 kB / 281.2 MB, free: 5.445 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1625/0.1625, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1781/0.3406, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09782/0.4384, allocations: 61.92 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2713/0.7097, allocations: 105.8 MB / 0.5975 GB, free: 6.918 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.71, allocations: 68.62 kB / 0.5975 GB, free: 6.852 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.2375/0.9475, allocations: 88.62 MB / 0.6841 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.9476, allocations: 15.94 kB / 0.6841 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/0.9577, allocations: 1.979 MB / 0.686 GB, free: 11.53 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.013/0.9708, allocations: 4.934 MB / 0.6909 GB, free: 6.527 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000276/0.9711, allocations: 140 kB / 0.691 GB, free: 6.391 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001774/0.9729, allocations: 255.9 kB / 0.6912 GB, free: 6.141 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1464/1.119, allocations: 6.391 MB / 0.6975 GB, free: 173 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01181/1.131, allocations: 9.654 MB / 0.7069 GB, free: 170 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001428/1.131, allocations: 63.06 kB / 0.707 GB, free: 170 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004456/1.132, allocations: 33.03 kB / 0.707 GB, free: 170 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001242/1.133, allocations: 1.112 MB / 0.7081 GB, free: 170 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03661/1.17, allocations: 48.05 MB / 0.755 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/1.172, allocations: 1.908 MB / 0.7569 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001002/1.173, allocations: 1.039 MB / 0.7579 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00573/1.178, allocations: 5.16 MB / 0.7629 GB, free: 134.4 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/1.178, allocations: 50.66 kB / 0.763 GB, free: 134.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 3.596e-06/1.178, allocations: 0 / 0.763 GB, free: 134.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=160): time 0.01364/1.192, allocations: 7.857 MB / 0.7706 GB, free: 130.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/1.192, allocations: 197.8 kB / 0.7708 GB, free: 130.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003358/1.195, allocations: 3.085 MB / 0.7738 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.411e-05/1.196, allocations: 25.7 kB / 0.7739 GB, free: 129.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001001/1.197, allocations: 3.04 MB / 0.7768 GB, free: 127.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003188/1.197, allocations: 0.6217 MB / 0.7774 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/1.197, allocations: 0 / 0.7774 GB, free: 126.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000226/1.197, allocations: 0.5677 MB / 0.778 GB, free: 126.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001672/1.199, allocations: 1.525 MB / 0.7795 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002872/1.202, allocations: 5.455 MB / 0.7848 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/1.205, allocations: 2.916 MB / 0.7877 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-05/1.205, allocations: 41 kB / 0.7877 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=811) (initialization): time 0.007481/1.212, allocations: 5.997 MB / 0.7936 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/1.212, allocations: 4.844 kB / 0.7936 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001993/1.212, allocations: 141 kB / 0.7937 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002228/1.213, allocations: 206.4 kB / 0.7939 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004823/1.217, allocations: 1.486 MB / 0.7953 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000227/1.218, allocations: 285.3 kB / 0.7956 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004338/1.222, allocations: 245.7 kB / 0.7958 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006241/1.223, allocations: 380.2 kB / 0.7962 GB, free: 116.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 645 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (787): * Single equations (assignments): 784 * Array equations: 3 * 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.0006272/1.223, allocations: 461.6 kB / 0.7966 GB, free: 116.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000438/1.224, allocations: 317.7 kB / 0.7969 GB, free: 115.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/1.226, allocations: 1.23 MB / 0.7982 GB, free: 115.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.738e-05/1.226, allocations: 14.34 kB / 0.7982 GB, free: 115.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/1.226, allocations: 1.375 kB / 0.7982 GB, free: 115.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.301e-05/1.226, allocations: 12.09 kB / 0.7982 GB, free: 115.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006451/1.232, allocations: 4.799 MB / 0.8029 GB, free: 112 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/1.232, allocations: 20 kB / 0.8029 GB, free: 111.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009526/1.233, allocations: 280.5 kB / 0.8032 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.167e-05/1.233, allocations: 34.91 kB / 0.8032 GB, free: 111.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.467e-05/1.233, allocations: 24 kB / 0.8032 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.711e-05/1.233, allocations: 39.77 kB / 0.8032 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-05/1.233, allocations: 27.81 kB / 0.8033 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002736/1.236, allocations: 5.065 MB / 0.8082 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003485/1.24, allocations: 6.267 MB / 0.8143 GB, free: 99.48 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005299/1.24, allocations: 390.9 kB / 0.8147 GB, free: 99.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003553/1.24, allocations: 27.28 kB / 0.8147 GB, free: 99.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/1.242, allocations: 62.06 kB / 0.8148 GB, free: 99.02 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/1.242, allocations: 128.8 kB / 0.8149 GB, free: 98.92 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-05/1.242, allocations: 64 kB / 0.815 GB, free: 98.86 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002567/1.245, allocations: 2.051 MB / 0.817 GB, free: 97.08 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005209/1.25, allocations: 0.7766 MB / 0.8177 GB, free: 96.31 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 143 * Array equations: 3 * 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.0003351/1.25, allocations: 180.8 kB / 0.8179 GB, free: 96.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004372/1.254, allocations: 3.5 MB / 0.8213 GB, free: 92.96 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.254, allocations: 4 kB / 0.8213 GB, free: 92.95 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0007457/1.255, allocations: 0.7042 MB / 0.822 GB, free: 92.31 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/1.257, allocations: 351.8 kB / 0.8224 GB, free: 92 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/1.269, allocations: 7.178 MB / 0.8294 GB, free: 85.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00333/1.272, allocations: 3.546 MB / 0.8328 GB, free: 82.53 MB / 0.4948 GB Notification: Performance of SimCode: time 4.61e-07/1.272, allocations: 0 / 0.8328 GB, free: 82.53 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Spring.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1)