Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009569/0.0009569, allocations: 195.5 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.5 MB / 243.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007677/0.0007677, allocations: 103.7 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3092/0.3092, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003263/0.0003264, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2656, allocations: 62.96 MB / 0.516 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.04831/0.3139, allocations: 65.7 MB / 0.5801 GB, free: 6.137 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03125/0.3452, allocations: 13.74 MB / 0.5935 GB, free: 9.805 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01293/0.3582, allocations: 315.2 kB / 0.5938 GB, free: 9.496 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009994/0.3682, allocations: 3.469 MB / 0.5972 GB, free: 6.039 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02554/0.3938, allocations: 10.23 MB / 0.6072 GB, free: 11.77 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004295/0.3981, allocations: 0.8426 MB / 0.608 GB, free: 10.93 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.07308/0.4712, allocations: 62.12 MB / 0.6687 GB, free: 12.73 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008242/0.4795, allocations: 6.106 MB / 0.6747 GB, free: 6.52 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002955/0.4825, allocations: 1.6 MB / 0.6762 GB, free: 4.914 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003219/0.4857, allocations: 2.465 MB / 0.6786 GB, free: 2.441 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006655/0.4864, allocations: 176 kB / 0.6788 GB, free: 2.27 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002273/0.4887, allocations: 1.275 MB / 0.68 GB, free: 0.9922 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.2418/0.7306, allocations: 2.202 MB / 0.6822 GB, free: 65.89 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003673/0.7343, allocations: 2.389 MB / 0.6845 GB, free: 65.86 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008118/0.7424, allocations: 6.95 MB / 0.6913 GB, free: 65.45 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.7425, allocations: 0 / 0.6913 GB, free: 65.45 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.7425, allocations: 1.969 kB / 0.6913 GB, free: 65.45 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003511/0.7428, allocations: 1.75 kB / 0.6913 GB, free: 65.45 MB / 490.7 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.01318/0.756, allocations: 5.235 MB / 0.6964 GB, free: 63.14 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.7561, allocations: 8.781 kB / 0.6964 GB, free: 63.14 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002738/0.7588, allocations: 0.8508 MB / 0.6973 GB, free: 63.06 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03765/0.7965, allocations: 6.166 MB / 0.7033 GB, free: 62.65 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009712/0.8063, allocations: 4.101 MB / 0.7073 GB, free: 61.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003216/0.8066, allocations: 291 kB / 0.7076 GB, free: 61.89 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00154/0.8082, allocations: 384.3 kB / 0.7079 GB, free: 61.89 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/0.8287, allocations: 11.85 MB / 0.7195 GB, free: 58.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001714/0.8289, allocations: 55 kB / 0.7196 GB, free: 58.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005805/0.8295, allocations: 179.8 kB / 0.7197 GB, free: 58.18 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003419/0.8329, allocations: 2.276 MB / 0.722 GB, free: 57.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01756/0.8505, allocations: 9.651 MB / 0.7314 GB, free: 54.47 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04537/0.8959, allocations: 46.34 MB / 0.7766 GB, free: 14.95 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008673/0.9046, allocations: 3.798 MB / 0.7803 GB, free: 11.77 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002088/0.9067, allocations: 2.013 MB / 0.7823 GB, free: 10.55 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007866/0.9146, allocations: 5.664 MB / 0.7878 GB, free: 6.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.9147, allocations: 52.08 kB / 0.7879 GB, free: 6.223 MB / 490.7 MB Notification: Performance of pre-optimization done (n=150): time 3.898e-06/0.9147, allocations: 0 / 0.7879 GB, free: 6.223 MB / 490.7 MB Notification: Performance of matching and sorting (n=162): time 0.03554/0.9502, allocations: 15.69 MB / 0.8032 GB, free: 8.477 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.737e-05/0.9504, allocations: 225 kB / 0.8034 GB, free: 8.211 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007191/0.9576, allocations: 5.66 MB / 0.809 GB, free: 4.023 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002929/0.9579, allocations: 51.45 kB / 0.809 GB, free: 3.984 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002447/0.9603, allocations: 3.849 MB / 0.8128 GB, free: 464 kB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007434/0.9611, allocations: 0.6568 MB / 0.8134 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002707/0.9614, allocations: 131.8 kB / 0.8135 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003406/0.9617, allocations: 0.5869 MB / 0.8141 GB, free: 15.08 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00287/0.9646, allocations: 2.062 MB / 0.8161 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005026/0.9696, allocations: 6.337 MB / 0.8223 GB, free: 4.617 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009103/0.9788, allocations: 9.158 MB / 0.8312 GB, free: 9.957 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001041/0.9789, allocations: 44 kB / 0.8313 GB, free: 9.914 MB / 0.5261 GB Notification: Performance of matching and sorting (n=866) (initialization): time 0.01522/0.9941, allocations: 8.589 MB / 0.8397 GB, free: 2.227 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001899/0.9944, allocations: 72.03 kB / 0.8397 GB, free: 2.156 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002215/0.9946, allocations: 152 kB / 0.8399 GB, free: 2.008 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001838/0.9964, allocations: 0.7219 MB / 0.8406 GB, free: 1.281 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004666/1.001, allocations: 1.516 MB / 0.8421 GB, free: 15.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007181/1.008, allocations: 6.441 MB / 0.8484 GB, free: 9.289 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005054/1.013, allocations: 349.2 kB / 0.8487 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001154/1.015, allocations: 416 kB / 0.8491 GB, free: 8.543 MB / 0.5417 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 (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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00516/1.02, allocations: 2.525 MB / 0.8516 GB, free: 6.148 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.021, allocations: 462.1 kB / 0.852 GB, free: 5.691 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005067/1.026, allocations: 2.654 MB / 0.8546 GB, free: 3.035 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.502e-05/1.026, allocations: 20 kB / 0.8546 GB, free: 3.016 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.555e-05/1.026, allocations: 4 kB / 0.8546 GB, free: 3.012 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/1.026, allocations: 7.969 kB / 0.8546 GB, free: 3.004 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01638/1.042, allocations: 7.585 MB / 0.862 GB, free: 11.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.996e-05/1.042, allocations: 1.641 kB / 0.862 GB, free: 11.4 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/1.044, allocations: 256.2 kB / 0.8623 GB, free: 11.16 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/1.045, allocations: 0.4956 MB / 0.8628 GB, free: 10.66 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001961/1.045, allocations: 28 kB / 0.8628 GB, free: 10.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00657/1.052, allocations: 5.784 MB / 0.8684 GB, free: 4.621 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.052, allocations: 4 kB / 0.8684 GB, free: 4.617 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007452/1.06, allocations: 4.933 MB / 0.8733 GB, free: 15.65 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001962/1.062, allocations: 0.5301 MB / 0.8738 GB, free: 15.09 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001321/1.063, allocations: 35.98 kB / 0.8738 GB, free: 15.06 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002254/1.065, allocations: 67.92 kB / 0.8739 GB, free: 14.99 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003809/1.066, allocations: 105.2 kB / 0.874 GB, free: 14.89 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/1.066, allocations: 43.98 kB / 0.874 GB, free: 14.85 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.007325/1.073, allocations: 3.623 MB / 0.8776 GB, free: 11.25 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.31e-07/1.073, allocations: 0 / 0.8776 GB, free: 11.25 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007452/1.081, allocations: 1.12 MB / 0.8786 GB, free: 10.14 MB / 0.573 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 (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 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00884/1.089, allocations: 5.574 MB / 0.8841 GB, free: 4.523 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008558/1.098, allocations: 5.104 MB / 0.8891 GB, free: 15.83 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/1.098, allocations: 4.188 kB / 0.8891 GB, free: 15.82 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0021/1.1, allocations: 1.485 MB / 0.8905 GB, free: 14.34 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007046/1.107, allocations: 0.6163 MB / 0.8911 GB, free: 13.73 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2925/1.4, allocations: 45.13 MB / 0.9352 GB, free: 213.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004928/1.405, allocations: 3.863 MB / 0.939 GB, free: 212.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002671/1.407, allocations: 2.422 MB / 0.9413 GB, free: 210.6 MB / 0.5886 GB Notification: Performance of SimCode: time 1.282e-06/1.407, allocations: 2 kB / 0.9413 GB, free: 210.6 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.298/9.705, allocations: 134.5 MB / 1.073 GB, free: 88.16 MB / 0.5886 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches