Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque",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.001035/0.001035, allocations: 174.8 kB / 8.518 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.26/1.26, allocations: 221.4 MB / 230.3 MB, free: 7.676 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.0009562/0.0009562, allocations: 80.73 kB / 281.2 MB, free: 5.484 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.1665/0.1665, allocations: 44.14 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1891/0.3557, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.4577, allocations: 61.91 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2748/0.7326, allocations: 108.2 MB / 0.5998 GB, free: 4.543 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001718/0.7328, allocations: 76.61 kB / 0.5999 GB, free: 4.469 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: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.5039/1.237, allocations: 128.2 MB / 0.7251 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/1.237, allocations: 13.75 kB / 0.7251 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02703/1.264, allocations: 6.693 MB / 0.7316 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01842/1.282, allocations: 7.016 MB / 0.7385 GB, free: 99.89 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/1.283, allocations: 201.6 kB / 0.7387 GB, free: 99.89 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002334/1.285, allocations: 384 kB / 0.739 GB, free: 99.88 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01384/1.299, allocations: 8.867 MB / 0.7477 GB, free: 99.85 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02185/1.321, allocations: 13.75 MB / 0.7611 GB, free: 93.75 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002428/1.321, allocations: 93.84 kB / 0.7612 GB, free: 93.74 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008246/1.322, allocations: 42.22 kB / 0.7612 GB, free: 93.74 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00186/1.324, allocations: 1.517 MB / 0.7627 GB, free: 93.49 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06074/1.384, allocations: 68.15 MB / 0.8293 GB, free: 39.02 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005227/1.39, allocations: 5.18 MB / 0.8343 GB, free: 34.18 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003625/1.393, allocations: 3.521 MB / 0.8378 GB, free: 30.96 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01405/1.407, allocations: 9.325 MB / 0.8469 GB, free: 22.89 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/1.408, allocations: 65.67 kB / 0.8469 GB, free: 22.82 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=221): time 6.162e-06/1.408, allocations: 0 / 0.8469 GB, free: 22.82 MB / 0.4948 GB Notification: Performance of matching and sorting (n=263): time 0.04513/1.453, allocations: 23.99 MB / 0.8704 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/1.453, allocations: 235.6 kB / 0.8706 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006557/1.459, allocations: 4.666 MB / 0.8751 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003972/1.46, allocations: 29.7 kB / 0.8752 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002304/1.462, allocations: 4.237 MB / 0.8793 GB, free: 6.402 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001063/1.463, allocations: 0.9871 MB / 0.8803 GB, free: 5.402 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003365/1.464, allocations: 0 / 0.8803 GB, free: 5.402 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004357/1.464, allocations: 0.6814 MB / 0.8809 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004209/1.468, allocations: 3.152 MB / 0.884 GB, free: 1.551 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007288/1.476, allocations: 8.311 MB / 0.8921 GB, free: 6.641 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007097/1.483, allocations: 5.096 MB / 0.8971 GB, free: 1.547 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.585e-05/1.483, allocations: 52 kB / 0.8972 GB, free: 1.496 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1127) (initialization): time 0.1775/1.66, allocations: 11.57 MB / 0.9085 GB, free: 175.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/1.66, allocations: 6.375 kB / 0.9085 GB, free: 175.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/1.661, allocations: 186.4 kB / 0.9086 GB, free: 175.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003876/1.664, allocations: 1.62 MB / 0.9102 GB, free: 175.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00673/1.671, allocations: 1.984 MB / 0.9122 GB, free: 175.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01267/1.684, allocations: 10.38 MB / 0.9223 GB, free: 172.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006714/1.691, allocations: 289.2 kB / 0.9226 GB, free: 172.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001114/1.692, allocations: 0.527 MB / 0.9231 GB, free: 172.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * Number of states: 0 () * Number of discrete variables: 67 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (1055): * Single equations (assignments): 1050 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001082/1.693, allocations: 0.5685 MB / 0.9236 GB, free: 172.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007269/1.694, allocations: 489.6 kB / 0.9241 GB, free: 172.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009007/1.703, allocations: 5.712 MB / 0.9297 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-05/1.703, allocations: 25.03 kB / 0.9297 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-05/1.703, allocations: 9.812 kB / 0.9297 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.327e-05/1.703, allocations: 16.5 kB / 0.9297 GB, free: 172.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01972/1.722, allocations: 12.04 MB / 0.9415 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/1.722, allocations: 0 / 0.9415 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/1.725, allocations: 416.8 kB / 0.9419 GB, free: 171.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003406/1.728, allocations: 1.309 MB / 0.9432 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002536/1.728, allocations: 9.266 kB / 0.9432 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/1.74, allocations: 9.615 MB / 0.9526 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.74, allocations: 2.031 kB / 0.9526 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01316/1.753, allocations: 9.66 MB / 0.962 GB, free: 162.2 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01707/1.77, allocations: 13.38 MB / 0.9751 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00148/1.772, allocations: 0.5002 MB / 0.9756 GB, free: 156.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007481/1.772, allocations: 6.75 kB / 0.9756 GB, free: 156.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002073/1.775, allocations: 91.39 kB / 0.9757 GB, free: 156.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003354/1.775, allocations: 125.6 kB / 0.9758 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002175/1.775, allocations: 66.39 kB / 0.9758 GB, free: 156.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004283/1.779, allocations: 3.148 MB / 0.9789 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007252/1.787, allocations: 1.308 MB / 0.9802 GB, free: 152.1 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 200 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005351/1.787, allocations: 155.9 kB / 0.9803 GB, free: 152 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01088/1.798, allocations: 7.823 MB / 0.988 GB, free: 145 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/1.798, allocations: 2.406 kB / 0.988 GB, free: 145 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004272/1.802, allocations: 2.874 MB / 0.9908 GB, free: 142.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/1.805, allocations: 0.52 MB / 0.9913 GB, free: 142 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02026/1.826, allocations: 12.1 MB / 1.003 GB, free: 131.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007567/1.833, allocations: 5.136 MB / 1.008 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.002e-06/1.833, allocations: 0 / 1.008 GB, free: 127.5 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1)