Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.001338/0.001337, allocations: 190.4 kB / 7.802 MB, free: 2.5 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.307/1.307, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.0009966/0.0009963, allocations: 83.41 kB / 261.4 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2049/0.2049, allocations: 43.49 MB / 352.8 MB, free: 1.973 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2279/0.4328, allocations: 64.96 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.7316, allocations: 58.84 MB / 476.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1594/0.891, allocations: 114.6 MB / 0.5774 GB, free: 264 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.8913, allocations: 79.95 kB / 0.5775 GB, free: 184 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.6241/1.515, allocations: 144.8 MB / 0.7189 GB, free: 88.53 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/1.516, allocations: 8 kB / 0.7189 GB, free: 88.52 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03464/1.55, allocations: 8.94 MB / 0.7276 GB, free: 79.56 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02531/1.576, allocations: 9.206 MB / 0.7366 GB, free: 70.36 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006254/1.576, allocations: 208 kB / 0.7368 GB, free: 70.15 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004141/1.58, allocations: 387.8 kB / 0.7372 GB, free: 69.77 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02172/1.602, allocations: 9.67 MB / 0.7466 GB, free: 60.1 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03518/1.637, allocations: 13.59 MB / 0.7599 GB, free: 45.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006763/1.638, allocations: 83.23 kB / 0.76 GB, free: 45.25 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003536/1.642, allocations: 36 kB / 0.76 GB, free: 45.22 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002386/1.644, allocations: 1.478 MB / 0.7615 GB, free: 43.74 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09351/1.738, allocations: 63.81 MB / 0.8238 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008151/1.746, allocations: 4.286 MB / 0.828 GB, free: 5.949 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006246/1.752, allocations: 3.371 MB / 0.8313 GB, free: 2.57 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.283/2.035, allocations: 12.37 MB / 0.8433 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.092e-05/2.035, allocations: 63.09 kB / 0.8434 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=245): time 8.336e-06/2.035, allocations: 0 / 0.8434 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=338): time 0.08208/2.117, allocations: 27.27 MB / 0.87 GB, free: 157.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/2.118, allocations: 240.7 kB / 0.8703 GB, free: 157 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008476/2.126, allocations: 4.464 MB / 0.8746 GB, free: 156.6 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009619/2.127, allocations: 25.7 kB / 0.8746 GB, free: 156.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00284/2.13, allocations: 4.02 MB / 0.8786 GB, free: 154.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00177/2.132, allocations: 1.196 MB / 0.8797 GB, free: 153.3 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004822/2.132, allocations: 0 / 0.8797 GB, free: 153.3 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004328/2.133, allocations: 0.66 MB / 0.8804 GB, free: 153 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005049/2.138, allocations: 3.524 MB / 0.8838 GB, free: 151.8 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007734/2.145, allocations: 8.178 MB / 0.8918 GB, free: 144.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009128/2.155, allocations: 5.345 MB / 0.897 GB, free: 142.4 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001727/2.155, allocations: 47.03 kB / 0.8971 GB, free: 142.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1100) (initialization): time 0.0384/2.193, allocations: 13.61 MB / 0.9104 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.53e-05/2.193, allocations: 6.062 kB / 0.9104 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004323/2.194, allocations: 168.6 kB / 0.9105 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01407/2.208, allocations: 3.361 MB / 0.9138 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008345/2.216, allocations: 1.822 MB / 0.9156 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02892/2.245, allocations: 16.06 MB / 0.9313 GB, free: 124.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008986/2.254, allocations: 267.3 kB / 0.9315 GB, free: 124.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002853/2.257, allocations: 489.4 kB / 0.932 GB, free: 124.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 751 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (999): * Single equations (assignments): 995 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004044/2.261, allocations: 0.524 MB / 0.9325 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001962/2.263, allocations: 0.5007 MB / 0.933 GB, free: 123.1 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02279/2.286, allocations: 8.481 MB / 0.9413 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001531/2.286, allocations: 32 kB / 0.9413 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.237e-05/2.286, allocations: 16 kB / 0.9413 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001082/2.287, allocations: 20.55 kB / 0.9413 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04945/2.336, allocations: 17.13 MB / 0.9581 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-05/2.336, allocations: 8 kB / 0.9581 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002847/2.339, allocations: 461.6 kB / 0.9585 GB, free: 102 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01212/2.351, allocations: 2.975 MB / 0.9614 GB, free: 99.96 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001272/2.352, allocations: 19.94 kB / 0.9614 GB, free: 99.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0237/2.376, allocations: 13.99 MB / 0.9751 GB, free: 87.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.226e-05/2.376, allocations: 11.94 kB / 0.9751 GB, free: 87.74 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02685/2.403, allocations: 13.92 MB / 0.9887 GB, free: 74.24 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04324/2.446, allocations: 27.01 MB / 1.015 GB, free: 46.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004413/2.451, allocations: 1.057 MB / 1.016 GB, free: 45.85 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002519/2.453, allocations: 11.98 kB / 1.016 GB, free: 45.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005224/2.459, allocations: 102.8 kB / 1.016 GB, free: 45.74 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001265/2.46, allocations: 169.8 kB / 1.016 GB, free: 45.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007046/2.461, allocations: 88 kB / 1.016 GB, free: 45.49 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.007813/2.469, allocations: 3.057 MB / 1.019 GB, free: 42.45 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01362/2.482, allocations: 1.43 MB / 1.021 GB, free: 41.04 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 250 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001426/2.484, allocations: 205.6 kB / 1.021 GB, free: 40.84 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01671/2.5, allocations: 8.497 MB / 1.029 GB, free: 32.36 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.679e-05/2.501, allocations: 0 / 1.029 GB, free: 32.36 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005967/2.507, allocations: 3.285 MB / 1.033 GB, free: 29.06 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005021/2.512, allocations: 0.5639 MB / 1.033 GB, free: 28.52 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3029/2.814, allocations: 13.09 MB / 1.046 GB, free: 155.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01264/2.827, allocations: 5.33 MB / 1.051 GB, free: 154.7 MB / 0.4948 GB Notification: Performance of SimCode: time 2.114e-06/2.827, allocations: 0 / 1.051 GB, free: 154.7 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1)