Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 109.4 kB / 17.21 MB, free: 6.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 241.8 MB, free: 15.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2147/0.2147, allocations: 44.16 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 66.27 kB / 407.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1492, allocations: 60.82 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.3326/0.4819, allocations: 72.36 MB / 0.5283 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04002/0.522, allocations: 14.42 MB / 0.5424 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02314/0.5452, allocations: 318.9 kB / 0.5427 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007228/0.5524, allocations: 3.745 MB / 0.5463 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008431/0.561, allocations: 2.109 MB / 0.5484 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003409/0.5644, allocations: 0.93 MB / 0.5493 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01316/0.5776, allocations: 8.735 MB / 0.5578 GB, free: 9.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007872/0.5855, allocations: 4.553 MB / 0.5623 GB, free: 4.742 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004227/0.5898, allocations: 1.775 MB / 0.564 GB, free: 2.961 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005074/0.5949, allocations: 2.858 MB / 0.5668 GB, free: 96 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001644/0.5966, allocations: 292 kB / 0.5671 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00401/0.6006, allocations: 1.424 MB / 0.5685 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003883/0.6045, allocations: 2.423 MB / 0.5708 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00551/0.6101, allocations: 2.73 MB / 0.5735 GB, free: 9.207 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01269/0.6228, allocations: 8.66 MB / 0.582 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.239e-05/0.6228, allocations: 8 kB / 0.582 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.6229, allocations: 4 kB / 0.582 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004059/0.6233, allocations: 0 / 0.582 GB, free: 0.5078 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1787 * Number of variables: 1787 Notification: Performance of Generate backend data structure: time 0.01854/0.6418, allocations: 6.317 MB / 0.5881 GB, free: 10.12 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.98e-05/0.6419, allocations: 8.031 kB / 0.5882 GB, free: 10.11 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002502/0.6444, allocations: 0.8477 MB / 0.589 GB, free: 9.254 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03708/0.6815, allocations: 6.078 MB / 0.5949 GB, free: 3.16 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0131/0.6947, allocations: 4.325 MB / 0.5991 GB, free: 14.78 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004071/0.6951, allocations: 283.7 kB / 0.5994 GB, free: 14.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002271/0.6974, allocations: 391.4 kB / 0.5998 GB, free: 14.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02742/0.7248, allocations: 11.86 MB / 0.6114 GB, free: 1.418 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003403/0.7252, allocations: 59.45 kB / 0.6114 GB, free: 1.359 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001897/0.7271, allocations: 187.8 kB / 0.6116 GB, free: 1.176 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00487/0.732, allocations: 2.268 MB / 0.6138 GB, free: 14.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02348/0.7556, allocations: 9.681 MB / 0.6233 GB, free: 5.207 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06586/0.8215, allocations: 46.3 MB / 0.6685 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0105/0.832, allocations: 3.797 MB / 0.6722 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00301/0.8351, allocations: 2.012 MB / 0.6742 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01135/0.8465, allocations: 5.675 MB / 0.6797 GB, free: 9.859 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.701e-05/0.8466, allocations: 55.06 kB / 0.6797 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=150): time 5.37e-06/0.8466, allocations: 0 / 0.6797 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of matching and sorting (n=162): time 0.04994/0.8966, allocations: 15.71 MB / 0.6951 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001555/0.8967, allocations: 230.2 kB / 0.6953 GB, free: 9.59 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009609/0.9064, allocations: 5.696 MB / 0.7009 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000358/0.9068, allocations: 45.7 kB / 0.7009 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.2087/1.115, allocations: 3.846 MB / 0.7047 GB, free: 191.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001098/1.117, allocations: 0.6528 MB / 0.7053 GB, free: 191.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002696/1.119, allocations: 1.35 MB / 0.7066 GB, free: 191.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.113e-05/1.119, allocations: 306.2 kB / 0.7069 GB, free: 191 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003411/1.123, allocations: 2.082 MB / 0.709 GB, free: 190.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005074/1.128, allocations: 6.362 MB / 0.7152 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009112/1.137, allocations: 9.192 MB / 0.7241 GB, free: 176.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001563/1.137, allocations: 43.72 kB / 0.7242 GB, free: 176.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=866) (initialization): time 0.01283/1.15, allocations: 8.655 MB / 0.7326 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.61e-05/1.15, allocations: 72.94 kB / 0.7327 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/1.15, allocations: 150.2 kB / 0.7328 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001556/1.152, allocations: 0.7243 MB / 0.7336 GB, free: 173.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003501/1.155, allocations: 1.51 MB / 0.735 GB, free: 173 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005801/1.161, allocations: 6.476 MB / 0.7414 GB, free: 168.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004301/1.165, allocations: 343.5 kB / 0.7417 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004401/1.166, allocations: 419.4 kB / 0.7421 GB, free: 168.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 692 * Number of states: 0 () * Number of discrete variables: 49 (frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 797 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.003005/1.169, allocations: 2.524 MB / 0.7445 GB, free: 167.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005737/1.169, allocations: 464 kB / 0.745 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003565/1.173, allocations: 2.652 MB / 0.7476 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.096e-05/1.173, allocations: 20 kB / 0.7476 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/1.173, allocations: 4 kB / 0.7476 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/1.173, allocations: 11.53 kB / 0.7476 GB, free: 164.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009901/1.183, allocations: 7.591 MB / 0.755 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/1.183, allocations: 4 kB / 0.755 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/1.184, allocations: 251.6 kB / 0.7553 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001179/1.185, allocations: 0.5026 MB / 0.7558 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.756e-05/1.185, allocations: 35.98 kB / 0.7558 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004935/1.19, allocations: 5.777 MB / 0.7614 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/1.19, allocations: 11.92 kB / 0.7614 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005523/1.196, allocations: 4.943 MB / 0.7663 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001249/1.197, allocations: 0.53 MB / 0.7668 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00109/1.198, allocations: 27.94 kB / 0.7668 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002035/1.2, allocations: 75.91 kB / 0.7669 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/1.201, allocations: 98.28 kB / 0.767 GB, free: 145.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.97e-05/1.201, allocations: 44 kB / 0.767 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005943/1.207, allocations: 3.658 MB / 0.7706 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/1.207, allocations: 0 / 0.7706 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006108/1.213, allocations: 1.121 MB / 0.7717 GB, free: 141 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (120): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.006209/1.219, allocations: 5.596 MB / 0.7772 GB, free: 135.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007157/1.226, allocations: 5.15 MB / 0.7822 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.226, allocations: 0 / 0.7822 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001638/1.228, allocations: 1.483 MB / 0.7836 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0044/1.232, allocations: 0.6109 MB / 0.7842 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.101/1.333, allocations: 68.37 MB / 0.851 GB, free: 50.27 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005472/1.339, allocations: 3.865 MB / 0.8548 GB, free: 46.38 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005488/1.344, allocations: 2.137 MB / 0.8569 GB, free: 44.23 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003932/1.348, allocations: 2.374 MB / 0.8592 GB, free: 41.86 MB / 0.5294 GB Notification: Performance of SimCode: time 1.563e-06/1.348, allocations: 4 kB / 0.8592 GB, free: 41.85 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3409/1.689, allocations: 87.95 MB / 0.9451 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/1.689, allocations: 211.8 kB / 0.9453 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.541/6.231, allocations: 3.938 kB / 0.9453 GB, free: 154.3 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques/FrameTorques.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches