Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque3",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.001599/0.001599, allocations: 181.9 kB / 13.66 MB, free: 1.664 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.006/2.006, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001198/0.001198, allocations: 86.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2809/0.2809, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.152e-05/3.166e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1154, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5292/0.6447, allocations: 110 MB / 0.5803 GB, free: 9.816 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.645, allocations: 81.92 kB / 0.5804 GB, free: 9.777 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.233/1.878, allocations: 224.8 MB / 0.7999 GB, free: 87.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.586e-06/1.878, allocations: 3.328 kB / 0.7999 GB, free: 87.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0008635/1.879, allocations: 246.1 kB / 0.8001 GB, free: 87.29 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4187 * Number of variables: 4187 Notification: Performance of Generate backend data structure: time 0.05026/1.93, allocations: 11.39 MB / 0.8113 GB, free: 80.23 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/1.93, allocations: 10.38 kB / 0.8113 GB, free: 80.23 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01035/1.94, allocations: 2.073 MB / 0.8133 GB, free: 78.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0928/2.033, allocations: 12.64 MB / 0.8256 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04493/2.078, allocations: 12.56 MB / 0.8379 GB, free: 54.76 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001228/2.079, allocations: 0.9047 MB / 0.8388 GB, free: 53.92 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006907/2.086, allocations: 1.205 MB / 0.84 GB, free: 52.78 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09166/2.178, allocations: 28.15 MB / 0.8675 GB, free: 22.62 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009682/2.179, allocations: 138.8 kB / 0.8676 GB, free: 22.49 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006238/2.185, allocations: 0.5657 MB / 0.8682 GB, free: 21.93 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006145/2.191, allocations: 2.68 MB / 0.8708 GB, free: 19.23 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07571/2.267, allocations: 23.22 MB / 0.8934 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6448/2.912, allocations: 117 MB / 1.008 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0605/2.973, allocations: 13.6 MB / 1.021 GB, free: 35.69 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01755/2.99, allocations: 7.873 MB / 1.029 GB, free: 32.41 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006074/2.996, allocations: 2.35 MB / 1.031 GB, free: 30.36 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/2.997, allocations: 93.66 kB / 1.031 GB, free: 30.28 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=559): time 3.005e-05/2.997, allocations: 0 / 1.031 GB, free: 30.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=643): time 0.2583/3.255, allocations: 53.35 MB / 1.083 GB, free: 2.043 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002648/3.255, allocations: 328.8 kB / 1.083 GB, free: 1.664 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06892/3.324, allocations: 10.52 MB / 1.094 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002127/3.326, allocations: 129.7 kB / 1.094 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.009335/3.336, allocations: 7.315 MB / 1.101 GB, free: 6.754 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004853/3.341, allocations: 2.344 MB / 1.103 GB, free: 4.672 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003135/3.344, allocations: 292.9 kB / 1.104 GB, free: 4.391 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001761/3.346, allocations: 0.9177 MB / 1.104 GB, free: 3.633 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.4194/3.765, allocations: 6.382 MB / 1.111 GB, free: 121.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02574/3.791, allocations: 13.97 MB / 1.124 GB, free: 112 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02581/3.817, allocations: 9.373 MB / 1.134 GB, free: 111.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005103/3.817, allocations: 76.08 kB / 1.134 GB, free: 111.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1864) (initialization): time 0.06898/3.886, allocations: 22.84 MB / 1.156 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002832/3.887, allocations: 121.1 kB / 1.156 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005386/3.887, allocations: 265.8 kB / 1.156 GB, free: 110.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0143/3.901, allocations: 3.252 MB / 1.159 GB, free: 110.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02496/3.927, allocations: 3.506 MB / 1.163 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04344/3.97, allocations: 22.56 MB / 1.185 GB, free: 98.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01959/3.99, allocations: 0.8763 MB / 1.186 GB, free: 98.44 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004189/3.994, allocations: 0.8111 MB / 1.187 GB, free: 98.33 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1204 * Number of states: 0 () * Number of discrete variables: 108 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[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],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixed3.color[3],fixed3.color[2],fixed3.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1744): * Single equations (assignments): 1737 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007801/4.002, allocations: 1.181 MB / 1.188 GB, free: 97.48 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003708/4.005, allocations: 0.9455 MB / 1.189 GB, free: 97.48 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04904/4.055, allocations: 14.44 MB / 1.203 GB, free: 92.33 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001025/4.055, allocations: 70 kB / 1.203 GB, free: 92.32 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.329e-05/4.055, allocations: 15.72 kB / 1.203 GB, free: 92.32 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001813/4.055, allocations: 29.81 kB / 1.203 GB, free: 92.32 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09884/4.154, allocations: 31.13 MB / 1.233 GB, free: 70.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001015/4.154, allocations: 8 kB / 1.233 GB, free: 70.83 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01278/4.167, allocations: 1.218 MB / 1.234 GB, free: 69.88 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01306/4.18, allocations: 2.833 MB / 1.237 GB, free: 67.89 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001918/4.182, allocations: 115.5 kB / 1.237 GB, free: 67.78 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0416/4.224, allocations: 21.07 MB / 1.258 GB, free: 49.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.697e-06/4.224, allocations: 10.81 kB / 1.258 GB, free: 49.07 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06943/4.293, allocations: 23.77 MB / 1.281 GB, free: 28.14 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009273/4.302, allocations: 2.044 MB / 1.283 GB, free: 26.28 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004421/4.307, allocations: 112 kB / 1.283 GB, free: 26.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01288/4.32, allocations: 485.2 kB / 1.284 GB, free: 25.86 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003468/4.323, allocations: 397.6 kB / 1.284 GB, free: 25.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002052/4.325, allocations: 166.5 kB / 1.284 GB, free: 25.44 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.02473/4.35, allocations: 6.429 MB / 1.29 GB, free: 19.04 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.102e-06/4.35, allocations: 4 kB / 1.29 GB, free: 19.03 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.03021/4.38, allocations: 2.941 MB / 1.293 GB, free: 16.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (554): * Single equations (assignments): 547 * 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 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.522/4.903, allocations: 24.95 MB / 1.318 GB, free: 123 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.04298/4.946, allocations: 16.04 MB / 1.333 GB, free: 122.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.579e-05/4.946, allocations: 5.781 kB / 1.333 GB, free: 122.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02112/4.967, allocations: 7.041 MB / 1.34 GB, free: 121.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01141/4.978, allocations: 1.198 MB / 1.341 GB, free: 121.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1003/5.079, allocations: 29.2 MB / 1.37 GB, free: 114.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02266/5.101, allocations: 8.319 MB / 1.378 GB, free: 112.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01787/5.119, allocations: 5.98 MB / 1.384 GB, free: 107.6 MB / 0.5573 GB Notification: Performance of SimCode: time 1.523e-06/5.119, allocations: 0 / 1.384 GB, free: 107.6 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.579/13.7, allocations: 419.4 MB / 1.793 GB, free: 178.6 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat