Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",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.001545/0.001545, allocations: 181.9 kB / 8.521 MB, free: 1.828 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.397/1.397, allocations: 221.4 MB / 230.3 MB, free: 7.688 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.001001/0.001001, allocations: 90.36 kB / 281.2 MB, free: 5.504 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.2162/0.2162, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2605/0.4768, allocations: 68.02 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.5933, allocations: 61.91 MB / 0.4942 GB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3449/0.9383, allocations: 107.7 MB / 0.5994 GB, free: 4.969 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.9385, allocations: 80.61 kB / 0.5994 GB, free: 4.891 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.2641/1.203, allocations: 97.71 MB / 0.6948 GB, free: 2.465 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/1.203, allocations: 11.94 kB / 0.6949 GB, free: 2.453 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.198/1.401, allocations: 6.336 MB / 0.701 GB, free: 170.4 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01432/1.415, allocations: 6.049 MB / 0.707 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/1.415, allocations: 141.8 kB / 0.7071 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001097/1.416, allocations: 263.9 kB / 0.7073 GB, free: 170.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009047/1.425, allocations: 6.801 MB / 0.714 GB, free: 170 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01196/1.437, allocations: 9.803 MB / 0.7236 GB, free: 167.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001389/1.438, allocations: 64.06 kB / 0.7236 GB, free: 167.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004624/1.438, allocations: 29.59 kB / 0.7236 GB, free: 167.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001116/1.439, allocations: 1.099 MB / 0.7247 GB, free: 167.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04213/1.481, allocations: 46.99 MB / 0.7706 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003095/1.484, allocations: 3.014 MB / 0.7735 GB, free: 133.7 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001945/1.486, allocations: 1.944 MB / 0.7754 GB, free: 132.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009904/1.496, allocations: 8.345 MB / 0.7836 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/1.496, allocations: 55.62 kB / 0.7836 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=180): time 4.549e-06/1.496, allocations: 3.812 kB / 0.7837 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=236): time 0.06301/1.559, allocations: 24.64 MB / 0.8077 GB, free: 112.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/1.559, allocations: 213.8 kB / 0.8079 GB, free: 112 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004134/1.564, allocations: 3.309 MB / 0.8111 GB, free: 109 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004938/1.564, allocations: 25.7 kB / 0.8112 GB, free: 109 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001132/1.565, allocations: 2.98 MB / 0.8141 GB, free: 106.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007713/1.566, allocations: 0.8491 MB / 0.8149 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000316/1.566, allocations: 0 / 0.8149 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002371/1.567, allocations: 0.5838 MB / 0.8155 GB, free: 105 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003529/1.57, allocations: 3.388 MB / 0.8188 GB, free: 102 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004606/1.575, allocations: 7.143 MB / 0.8258 GB, free: 93.37 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007003/1.582, allocations: 5.002 MB / 0.8306 GB, free: 89.08 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.653e-05/1.582, allocations: 40 kB / 0.8307 GB, free: 89.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.03637/1.618, allocations: 14.66 MB / 0.845 GB, free: 76.01 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/1.618, allocations: 7.984 kB / 0.845 GB, free: 76 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/1.618, allocations: 132 kB / 0.8451 GB, free: 75.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02227/1.641, allocations: 5.627 MB / 0.8506 GB, free: 70.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005452/1.646, allocations: 1.454 MB / 0.8521 GB, free: 68.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02835/1.675, allocations: 22.62 MB / 0.8741 GB, free: 45.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005906/1.681, allocations: 223.5 kB / 0.8744 GB, free: 45.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001614/1.682, allocations: 396 kB / 0.8747 GB, free: 45.34 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 608 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (772): * Single equations (assignments): 767 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001915/1.684, allocations: 445.4 kB / 0.8752 GB, free: 44.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008933/1.685, allocations: 375.2 kB / 0.8755 GB, free: 44.53 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02705/1.712, allocations: 10.59 MB / 0.8859 GB, free: 33.93 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.719e-05/1.712, allocations: 24 kB / 0.8859 GB, free: 33.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.199e-05/1.712, allocations: 8 kB / 0.8859 GB, free: 33.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.813e-05/1.712, allocations: 11.97 kB / 0.8859 GB, free: 33.88 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04033/1.753, allocations: 19.06 MB / 0.9045 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.332e-05/1.753, allocations: 4.594 kB / 0.9045 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002191/1.755, allocations: 351.5 kB / 0.9048 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02016/1.775, allocations: 4.677 MB / 0.9094 GB, free: 9.359 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007052/1.776, allocations: 12 kB / 0.9094 GB, free: 9.348 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2014/1.977, allocations: 18.59 MB / 0.9276 GB, free: 153.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.277e-06/1.977, allocations: 9.562 kB / 0.9276 GB, free: 153.2 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02924/2.007, allocations: 14.44 MB / 0.9417 GB, free: 151.9 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04094/2.048, allocations: 26.65 MB / 0.9677 GB, free: 143.7 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001433/2.049, allocations: 399.9 kB / 0.9681 GB, free: 143.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008334/2.05, allocations: 8.469 kB / 0.9681 GB, free: 143.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00224/2.052, allocations: 87.2 kB / 0.9682 GB, free: 143.6 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003817/2.053, allocations: 120.6 kB / 0.9683 GB, free: 143.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002575/2.053, allocations: 76.14 kB / 0.9684 GB, free: 143.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.00307/2.056, allocations: 2.239 MB / 0.9706 GB, free: 142.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006207/2.062, allocations: 1.152 MB / 0.9717 GB, free: 142.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (165): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 47} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006106/2.063, allocations: 166.7 kB / 0.9719 GB, free: 142.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009653/2.072, allocations: 7.722 MB / 0.9794 GB, free: 140 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/2.072, allocations: 0 / 0.9794 GB, free: 140 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003628/2.076, allocations: 2.999 MB / 0.9823 GB, free: 138.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/2.078, allocations: 390.3 kB / 0.9827 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01762/2.096, allocations: 10.07 MB / 0.9925 GB, free: 134.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004254/2.1, allocations: 3.868 MB / 0.9963 GB, free: 131.4 MB / 0.4948 GB Notification: Performance of SimCode: time 8.42e-07/2.1, allocations: 0 / 0.9963 GB, free: 131.4 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1)