Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.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.FrameTorques2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009755/0.0009754, allocations: 196.6 kB / 16.1 MB, free: 5.488 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 226.5 MB / 243.4 MB, free: 13.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007099/0.0007099, allocations: 92.34 kB / 295.4 MB, free: 9.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1743/0.1743, allocations: 44.83 MB / 392.3 MB, free: 9.172 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002509/0.000251, allocations: 8 kB / 465.4 MB, free: 49.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0945/0.09477, allocations: 62.96 MB / 0.516 GB, free: 2.344 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.2839/0.3787, allocations: 112 MB / 0.6253 GB, free: 13.11 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.04791/0.4267, allocations: 22.23 MB / 0.647 GB, free: 6.805 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02109/0.4478, allocations: 0.5261 MB / 0.6475 GB, free: 6.277 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01657/0.4644, allocations: 5.98 MB / 0.6534 GB, free: 276 kB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04076/0.5052, allocations: 17.16 MB / 0.6701 GB, free: 15.05 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009015/0.5143, allocations: 1.295 MB / 0.6714 GB, free: 13.75 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.3517/0.866, allocations: 121.6 MB / 0.7902 GB, free: 23.35 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01116/0.8772, allocations: 10.82 MB / 0.8007 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003762/0.881, allocations: 2.449 MB / 0.8031 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00407/0.8851, allocations: 3.855 MB / 0.8069 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0009535/0.8861, allocations: 271.8 kB / 0.8071 GB, free: 10.95 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00244/0.8885, allocations: 1.336 MB / 0.8084 GB, free: 9.891 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.002279/0.8908, allocations: 3.408 MB / 0.8118 GB, free: 7.383 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.003081/0.8939, allocations: 3.628 MB / 0.8153 GB, free: 6.098 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.008689/0.9026, allocations: 10.7 MB / 0.8258 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.9027, allocations: 0 / 0.8258 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.545e-06/0.9027, allocations: 0 / 0.8258 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004079/0.9031, allocations: 4 kB / 0.8258 GB, free: 12.8 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.0183/0.9214, allocations: 7.958 MB / 0.8335 GB, free: 5.473 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.9215, allocations: 8.031 kB / 0.8336 GB, free: 5.465 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003481/0.9249, allocations: 1.24 MB / 0.8348 GB, free: 4.73 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06802/0.993, allocations: 10.69 MB / 0.8452 GB, free: 10.84 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01335/1.006, allocations: 6.767 MB / 0.8518 GB, free: 5.918 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003572/1.007, allocations: 457.9 kB / 0.8522 GB, free: 5.668 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001903/1.009, allocations: 0.6185 MB / 0.8529 GB, free: 5.258 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03049/1.039, allocations: 17.6 MB / 0.87 GB, free: 7.5 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002877/1.04, allocations: 91.33 kB / 0.8701 GB, free: 7.445 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009105/1.04, allocations: 281.6 kB / 0.8704 GB, free: 7.367 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005162/1.046, allocations: 3.136 MB / 0.8735 GB, free: 4.77 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02694/1.073, allocations: 14.42 MB / 0.8875 GB, free: 10.64 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4604/1.533, allocations: 65.43 MB / 0.9514 GB, free: 210.1 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01679/1.55, allocations: 6.382 MB / 0.9577 GB, free: 209.4 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004221/1.554, allocations: 3.635 MB / 0.9612 GB, free: 209.3 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005095/1.555, allocations: 0.6465 MB / 0.9619 GB, free: 208.8 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/1.555, allocations: 63.31 kB / 0.9619 GB, free: 208.7 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=231): time 4.89e-06/1.555, allocations: 0 / 0.9619 GB, free: 208.7 MB / 0.6043 GB Notification: Performance of matching and sorting (n=255): time 0.06789/1.623, allocations: 28.04 MB / 0.9893 GB, free: 200.3 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/1.623, allocations: 280.7 kB / 0.9896 GB, free: 200 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00862/1.631, allocations: 7.396 MB / 0.9968 GB, free: 196.2 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 0.0005054/1.632, allocations: 70.47 kB / 0.9969 GB, free: 196.1 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 0.002632/1.634, allocations: 5.357 MB / 1.002 GB, free: 191.5 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009995/1.636, allocations: 0.996 MB / 1.003 GB, free: 190.6 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004039/1.636, allocations: 168 kB / 1.003 GB, free: 190.4 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.0002967/1.636, allocations: 0.6576 MB / 1.004 GB, free: 189.8 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003514/1.64, allocations: 2.98 MB / 1.007 GB, free: 186.8 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005263/1.645, allocations: 8.208 MB / 1.015 GB, free: 176.2 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009514/1.655, allocations: 12.16 MB / 1.027 GB, free: 162.2 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/1.655, allocations: 52 kB / 1.027 GB, free: 162.1 MB / 0.6043 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.01799/1.673, allocations: 11.91 MB / 1.038 GB, free: 150.2 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 8.901e-05/1.673, allocations: 83.94 kB / 1.038 GB, free: 150.1 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001375/1.673, allocations: 187.9 kB / 1.039 GB, free: 149.9 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00279/1.676, allocations: 1.291 MB / 1.04 GB, free: 148.6 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005402/1.681, allocations: 1.934 MB / 1.042 GB, free: 146.7 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/1.692, allocations: 12.67 MB / 1.054 GB, free: 133.5 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006273/1.698, allocations: 475.2 kB / 1.055 GB, free: 133 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001214/1.7, allocations: 0.5078 MB / 1.055 GB, free: 132.5 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 839 * Number of states: 0 () * Number of discrete variables: 74 (frameTorque4.arrow.arrowLine.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque3.arrow.arrowLine.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque2.arrow.arrowLine.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.arrowLine.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],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],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 (1022): * Single equations (assignments): 1015 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005309/1.705, allocations: 3.517 MB / 1.059 GB, free: 129 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/1.706, allocations: 0.6248 MB / 1.059 GB, free: 128.4 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007171/1.713, allocations: 4.969 MB / 1.064 GB, free: 123.4 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.049e-05/1.713, allocations: 32.69 kB / 1.064 GB, free: 123.3 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.865e-05/1.713, allocations: 12 kB / 1.064 GB, free: 123.3 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.619e-05/1.713, allocations: 11.95 kB / 1.064 GB, free: 123.3 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02053/1.734, allocations: 13.1 MB / 1.077 GB, free: 110.2 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/1.734, allocations: 0 / 1.077 GB, free: 110.2 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001808/1.736, allocations: 408.5 kB / 1.077 GB, free: 109.8 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002382/1.738, allocations: 0.9831 MB / 1.078 GB, free: 108.8 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000193/1.738, allocations: 44.86 kB / 1.078 GB, free: 108.8 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009516/1.748, allocations: 11.58 MB / 1.09 GB, free: 96.67 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.748, allocations: 0 / 1.09 GB, free: 96.67 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009995/1.758, allocations: 8.295 MB / 1.098 GB, free: 88.29 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/1.76, allocations: 0.6842 MB / 1.098 GB, free: 87.58 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008168/1.76, allocations: 40 kB / 1.098 GB, free: 87.54 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002191/1.763, allocations: 156.6 kB / 1.098 GB, free: 87.39 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005047/1.763, allocations: 153.7 kB / 1.099 GB, free: 87.24 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/1.763, allocations: 72.62 kB / 1.099 GB, free: 87.17 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.006152/1.769, allocations: 4.716 MB / 1.103 GB, free: 82.48 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5.01e-07/1.769, allocations: 0 / 1.103 GB, free: 82.48 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.00721/1.777, allocations: 1.663 MB / 1.105 GB, free: 80.82 MB / 0.6043 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (195): * Single equations (assignments): 188 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(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.009633/1.786, allocations: 8.978 MB / 1.114 GB, free: 71.76 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.008864/1.795, allocations: 7.636 MB / 1.121 GB, free: 64.12 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/1.795, allocations: 0 / 1.121 GB, free: 64.12 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.002829/1.798, allocations: 2.688 MB / 1.124 GB, free: 61.39 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00596/1.804, allocations: 0.9309 MB / 1.125 GB, free: 60.46 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3133/2.117, allocations: 68.95 MB / 1.192 GB, free: 230.2 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007553/2.125, allocations: 5.416 MB / 1.197 GB, free: 229.3 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00417/2.129, allocations: 3.684 MB / 1.201 GB, free: 226.3 MB / 0.6043 GB Notification: Performance of SimCode: time 7.41e-07/2.129, allocations: 0 / 1.201 GB, free: 226.3 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 11.95/14.08, allocations: 261.2 MB / 1.456 GB, free: 185 MB / 0.6043 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/FrameTorques2/FrameTorques2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches