Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001372/0.001372, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00141/0.00141, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.236/0.236, allocations: 46.11 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 87.45 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1184, allocations: 62.45 MB / 480.2 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.019/0.1375, allocations: 15.41 MB / 495.6 MB, free: 5.637 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.1497, allocations: 5.046 MB / 0.4889 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003204/0.153, allocations: 103.7 kB / 0.489 GB, free: 484 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01007/0.1631, allocations: 4.996 MB / 0.4939 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007587/0.1708, allocations: 2.509 MB / 0.4964 GB, free: 8.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003166/0.1739, allocations: 1.24 MB / 0.4976 GB, free: 7.699 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2239/0.3979, allocations: 7.951 MB / 0.5053 GB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01015/0.4081, allocations: 5.987 MB / 0.5112 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006622/0.4148, allocations: 2.514 MB / 0.5136 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007207/0.422, allocations: 3.445 MB / 0.517 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003122/0.4252, allocations: 0.5367 MB / 0.5175 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005371/0.4306, allocations: 1.55 MB / 0.519 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005756/0.4363, allocations: 3.143 MB / 0.5221 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006444/0.4428, allocations: 3.565 MB / 0.5256 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.4558, allocations: 10.73 MB / 0.5361 GB, free: 5.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.009e-05/0.4558, allocations: 3.469 kB / 0.5361 GB, free: 5.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4558, allocations: 0 / 0.5361 GB, free: 5.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004236/0.4563, allocations: 0 / 0.5361 GB, free: 5.375 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2128 * Number of variables: 2128 Notification: Performance of Generate backend data structure: time 0.02306/0.4793, allocations: 7.809 MB / 0.5437 GB, free: 240 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/0.4794, allocations: 12.25 kB / 0.5437 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003171/0.4826, allocations: 1.015 MB / 0.5447 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05676/0.5394, allocations: 8.28 MB / 0.5528 GB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01432/0.5537, allocations: 5.337 MB / 0.558 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004844/0.5543, allocations: 364.5 kB / 0.5583 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002161/0.5564, allocations: 497.2 kB / 0.5588 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.044/0.6005, allocations: 14.09 MB / 0.5726 GB, free: 3.586 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005132/0.601, allocations: 71.03 kB / 0.5726 GB, free: 3.547 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002573/0.6036, allocations: 230.6 kB / 0.5729 GB, free: 3.367 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008385/0.6121, allocations: 2.536 MB / 0.5753 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04432/0.6564, allocations: 11.45 MB / 0.5865 GB, free: 5.664 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1061/0.7626, allocations: 55.39 MB / 0.6406 GB, free: 13.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01327/0.7759, allocations: 4.464 MB / 0.645 GB, free: 8.949 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004239/0.7802, allocations: 2.714 MB / 0.6476 GB, free: 6.223 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001646/0.7804, allocations: 35.17 kB / 0.6477 GB, free: 6.203 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.881e-05/0.7805, allocations: 62.83 kB / 0.6477 GB, free: 6.137 MB / 494.1 MB Notification: Performance of pre-optimization done (n=186): time 5.621e-06/0.7805, allocations: 0 / 0.6477 GB, free: 6.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=204): time 0.06417/0.8447, allocations: 20.35 MB / 0.6676 GB, free: 1.645 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001847/0.8449, allocations: 263.6 kB / 0.6678 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01366/0.8586, allocations: 6.688 MB / 0.6744 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004883/0.8591, allocations: 57.7 kB / 0.6744 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0046/0.8637, allocations: 4.554 MB / 0.6789 GB, free: 6.043 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001259/0.865, allocations: 0.8152 MB / 0.6797 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00373/0.8687, allocations: 1.551 MB / 0.6812 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.8689, allocations: 305.1 kB / 0.6815 GB, free: 3.375 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004623/0.8735, allocations: 2.568 MB / 0.684 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01012/0.8837, allocations: 7.439 MB / 0.6913 GB, free: 7.035 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01514/0.8989, allocations: 10.85 MB / 0.7018 GB, free: 10.32 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001947/0.8991, allocations: 48 kB / 0.7019 GB, free: 10.27 MB / 0.545 GB Notification: Performance of matching and sorting (n=996) (initialization): time 0.2396/1.139, allocations: 10.44 MB / 0.7121 GB, free: 178.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001768/1.139, allocations: 78.56 kB / 0.7122 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002932/1.139, allocations: 172.4 kB / 0.7123 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002917/1.142, allocations: 1.022 MB / 0.7133 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00599/1.148, allocations: 1.751 MB / 0.715 GB, free: 178.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/1.159, allocations: 10.36 MB / 0.7252 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005856/1.165, allocations: 420.1 kB / 0.7256 GB, free: 173.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001078/1.166, allocations: 480.3 kB / 0.726 GB, free: 173.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (930): * Single equations (assignments): 924 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,14,100.0%), (1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00493/1.171, allocations: 2.973 MB / 0.7289 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/1.172, allocations: 0.5415 MB / 0.7294 GB, free: 172.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006288/1.178, allocations: 3.757 MB / 0.7331 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.979e-05/1.178, allocations: 26.73 kB / 0.7331 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.337e-05/1.178, allocations: 6.875 kB / 0.7331 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.287e-05/1.178, allocations: 10.7 kB / 0.7332 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01478/1.193, allocations: 10.01 MB / 0.7429 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.285e-05/1.193, allocations: 3.781 kB / 0.7429 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/1.195, allocations: 313.7 kB / 0.7432 GB, free: 167.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001771/1.196, allocations: 0.7493 MB / 0.744 GB, free: 167.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/1.196, allocations: 35.34 kB / 0.744 GB, free: 167.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007863/1.204, allocations: 9.456 MB / 0.7532 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/1.204, allocations: 4.125 kB / 0.7532 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007898/1.212, allocations: 6.587 MB / 0.7597 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001466/1.214, allocations: 0.6044 MB / 0.7603 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001141/1.215, allocations: 34.66 kB / 0.7603 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002318/1.217, allocations: 119 kB / 0.7604 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003416/1.218, allocations: 125 kB / 0.7605 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/1.218, allocations: 60.25 kB / 0.7606 GB, free: 158.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005965/1.224, allocations: 4.286 MB / 0.7648 GB, free: 156.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 8.41e-07/1.224, allocations: 0 / 0.7648 GB, free: 156.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006953/1.231, allocations: 1.365 MB / 0.7661 GB, free: 155.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (153): * Single equations (assignments): 147 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,11,100.0%), (1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00785/1.239, allocations: 7.247 MB / 0.7732 GB, free: 149.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01055/1.249, allocations: 7.309 MB / 0.7803 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/1.249, allocations: 0 / 0.7803 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002577/1.252, allocations: 2.086 MB / 0.7824 GB, free: 140.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005668/1.257, allocations: 0.8058 MB / 0.7831 GB, free: 139.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1057/1.363, allocations: 83.42 MB / 0.8646 GB, free: 44.69 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007849/1.371, allocations: 4.532 MB / 0.869 GB, free: 40.12 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007402/1.379, allocations: 2.492 MB / 0.8715 GB, free: 37.63 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004927/1.383, allocations: 2.921 MB / 0.8743 GB, free: 34.71 MB / 0.545 GB Notification: Performance of SimCode: time 1.373e-06/1.384, allocations: 0 / 0.8743 GB, free: 34.71 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4264/1.81, allocations: 111.4 MB / 0.9831 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/14.99, allocations: 2.234 kB / 0.9831 GB, free: 166.4 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1)