Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002309/0.002314, allocations: 184.4 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.069/2.069, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001189/0.001189, allocations: 103.2 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5294/0.5294, allocations: 43.55 MB / 362.7 MB, free: 52.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004882/0.0004883, allocations: 12 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1506, allocations: 58.85 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.4719/0.6225, allocations: 107.8 MB / 0.5841 GB, free: 5.848 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.07129/0.6939, allocations: 23.73 MB / 0.6072 GB, free: 1.031 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0258/0.7197, allocations: 0.5261 MB / 0.6077 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.02203/0.7418, allocations: 5.454 MB / 0.6131 GB, free: 12.62 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.06331/0.8052, allocations: 15.29 MB / 0.628 GB, free: 13.31 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009796/0.815, allocations: 1.222 MB / 0.6292 GB, free: 12.09 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.5482/1.363, allocations: 52.53 MB / 0.6805 GB, free: 45.7 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0262/1.39, allocations: 9.976 MB / 0.6902 GB, free: 44.93 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007007/1.397, allocations: 2.157 MB / 0.6923 GB, free: 44.93 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0076/1.404, allocations: 2.998 MB / 0.6953 GB, free: 44.92 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003047/1.407, allocations: 310.9 kB / 0.6956 GB, free: 44.92 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006128/1.414, allocations: 1.157 MB / 0.6967 GB, free: 44.92 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008095/1.422, allocations: 3.471 MB / 0.7001 GB, free: 44.92 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005527/1.427, allocations: 1.733 MB / 0.7018 GB, free: 44.89 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02023/1.448, allocations: 11.88 MB / 0.7134 GB, free: 40.51 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/1.448, allocations: 0 / 0.7134 GB, free: 40.51 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.898e-06/1.448, allocations: 0 / 0.7134 GB, free: 40.51 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006388/1.448, allocations: 0 / 0.7134 GB, free: 40.51 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: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.03463/1.483, allocations: 8.877 MB / 0.7221 GB, free: 35.42 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/1.483, allocations: 13.69 kB / 0.7221 GB, free: 35.42 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006725/1.49, allocations: 1.395 MB / 0.7234 GB, free: 35.03 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1624/1.652, allocations: 14.28 MB / 0.7374 GB, free: 23.58 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02429/1.677, allocations: 7.167 MB / 0.7444 GB, free: 18.47 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006081/1.677, allocations: 498.1 kB / 0.7448 GB, free: 18.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003432/1.681, allocations: 0.6704 MB / 0.7455 GB, free: 17.75 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05671/1.737, allocations: 19.84 MB / 0.7649 GB, free: 2.402 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005379/1.738, allocations: 90.05 kB / 0.765 GB, free: 2.352 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002875/1.741, allocations: 311.5 kB / 0.7653 GB, free: 2.266 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01077/1.752, allocations: 3.605 MB / 0.7688 GB, free: 15.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05841/1.81, allocations: 16.45 MB / 0.7848 GB, free: 3.789 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1523/1.962, allocations: 72.45 MB / 0.8556 GB, free: 8.176 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03853/2.001, allocations: 8.289 MB / 0.8637 GB, free: 1.676 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001301/2.002, allocations: 0.6669 MB / 0.8643 GB, free: 0.9414 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.422e-05/2.003, allocations: 67.31 kB / 0.8644 GB, free: 0.8906 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=311): time 8.786e-06/2.003, allocations: 0 / 0.8644 GB, free: 0.8906 MB / 0.5573 GB Notification: Performance of matching and sorting (n=335): time 0.5165/2.519, allocations: 32.42 MB / 0.8961 GB, free: 207 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/2.519, allocations: 295.7 kB / 0.8964 GB, free: 206.7 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02201/2.541, allocations: 8.305 MB / 0.9045 GB, free: 205 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001016/2.542, allocations: 75.14 kB / 0.9045 GB, free: 204.9 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005623/2.548, allocations: 5.527 MB / 0.9099 GB, free: 200.6 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002409/2.55, allocations: 1.267 MB / 0.9112 GB, free: 199.6 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001636/2.552, allocations: 190.4 kB / 0.9114 GB, free: 199.5 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0008633/2.553, allocations: 0.7191 MB / 0.9121 GB, free: 199 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01079/2.564, allocations: 3.647 MB / 0.9156 GB, free: 197.8 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01443/2.578, allocations: 9.289 MB / 0.9247 GB, free: 189 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.014/2.592, allocations: 5.674 MB / 0.9302 GB, free: 186.9 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002815/2.593, allocations: 61.36 kB / 0.9303 GB, free: 186.9 MB / 0.573 GB Notification: Performance of matching and sorting (n=1254) (initialization): time 0.04219/2.635, allocations: 13.43 MB / 0.9434 GB, free: 181.8 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002831/2.635, allocations: 95.84 kB / 0.9435 GB, free: 181.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005129/2.636, allocations: 201.8 kB / 0.9437 GB, free: 181.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006619/2.643, allocations: 1.343 MB / 0.945 GB, free: 181.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0153/2.658, allocations: 2.237 MB / 0.9472 GB, free: 181.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02398/2.682, allocations: 12.93 MB / 0.9598 GB, free: 172.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01305/2.695, allocations: 0.545 MB / 0.9603 GB, free: 172.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002554/2.698, allocations: 0.5589 MB / 0.9609 GB, free: 172.6 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 907 * Number of states: 0 () * Number of discrete variables: 66 (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 (1174): * Single equations (assignments): 1167 * 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.01209/2.71, allocations: 3.878 MB / 0.9647 GB, free: 170.8 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002113/2.712, allocations: 0.687 MB / 0.9653 GB, free: 170.4 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02106/2.733, allocations: 6.495 MB / 0.9717 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.108e-05/2.733, allocations: 34.62 kB / 0.9717 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.205e-05/2.733, allocations: 16.5 kB / 0.9717 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001025/2.733, allocations: 14.06 kB / 0.9718 GB, free: 167.9 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05447/2.788, allocations: 15.94 MB / 0.9873 GB, free: 156.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.892e-05/2.788, allocations: 0 / 0.9873 GB, free: 156.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005953/2.794, allocations: 0.5614 MB / 0.9879 GB, free: 155.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004862/2.799, allocations: 0.9856 MB / 0.9888 GB, free: 155.1 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008736/2.8, allocations: 66.16 kB / 0.9889 GB, free: 155.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01911/2.819, allocations: 11.78 MB / 1 GB, free: 143.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/2.819, allocations: 7.969 kB / 1 GB, free: 143.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02627/2.845, allocations: 10.85 MB / 1.011 GB, free: 134.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00492/2.85, allocations: 1.247 MB / 1.012 GB, free: 133.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002218/2.852, allocations: 64.59 kB / 1.012 GB, free: 133 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006282/2.859, allocations: 207.7 kB / 1.012 GB, free: 132.8 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001172/2.86, allocations: 199.2 kB / 1.013 GB, free: 132.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003737/2.86, allocations: 87.98 kB / 1.013 GB, free: 132.5 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01295/2.873, allocations: 5.375 MB / 1.018 GB, free: 127.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 3.91e-07/2.873, allocations: 4 kB / 1.018 GB, free: 127.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01361/2.887, allocations: 1.919 MB / 1.02 GB, free: 125.2 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (276): * Single equations (assignments): 269 * 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.02862/2.916, allocations: 11.83 MB / 1.031 GB, free: 113.3 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02214/2.938, allocations: 9.224 MB / 1.04 GB, free: 104.1 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/2.938, allocations: 4 kB / 1.04 GB, free: 104 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.007743/2.946, allocations: 3.377 MB / 1.044 GB, free: 100.6 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008287/2.954, allocations: 0.9413 MB / 1.045 GB, free: 99.7 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5816/3.536, allocations: 215.7 MB / 1.255 GB, free: 104.4 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01594/3.552, allocations: 6.125 MB / 1.261 GB, free: 102.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01034/3.562, allocations: 4.139 MB / 1.265 GB, free: 99.1 MB / 0.573 GB Notification: Performance of SimCode: time 2.013e-06/3.562, allocations: 0 / 1.265 GB, free: 99.1 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.901/10.46, allocations: 298.5 MB / 1.557 GB, free: 70.24 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat