Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.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.Torque3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001084, allocations: 195.3 kB / 8.765 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001051/0.001051, allocations: 96.28 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2135/0.2135, allocations: 45.15 MB / 383.8 MB, free: 292 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.004e-05/2.006e-05, allocations: 4 kB / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4792/0.5997, allocations: 111 MB / 0.6128 GB, free: 7.539 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.6, allocations: 80.77 kB / 0.6129 GB, free: 7.5 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7674/1.367, allocations: 205.7 MB / 0.8138 GB, free: 99.84 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.653e-06/1.368, allocations: 0 / 0.8138 GB, free: 99.84 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0006328/1.368, allocations: 228.1 kB / 0.814 GB, free: 99.83 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: 3739 * Number of variables: 3739 Notification: Performance of Generate backend data structure: time 0.03146/1.4, allocations: 10.73 MB / 0.8245 GB, free: 95.97 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/1.4, allocations: 6.969 kB / 0.8245 GB, free: 95.97 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04709/1.447, allocations: 12.44 MB / 0.8366 GB, free: 95.22 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02405/1.471, allocations: 10.58 MB / 0.847 GB, free: 93.73 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000509/1.471, allocations: 355.9 kB / 0.8473 GB, free: 93.73 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004591/1.476, allocations: 0.6478 MB / 0.8479 GB, free: 93.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02721/1.503, allocations: 14.95 MB / 0.8625 GB, free: 86.07 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04423/1.548, allocations: 22.2 MB / 0.8842 GB, free: 64.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007197/1.548, allocations: 130.8 kB / 0.8844 GB, free: 64.57 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003901/1.552, allocations: 56 kB / 0.8844 GB, free: 64.52 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002979/1.555, allocations: 2.355 MB / 0.8867 GB, free: 62.17 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.469/2.024, allocations: 102.7 MB / 0.987 GB, free: 52.03 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01182/2.036, allocations: 9.621 MB / 0.9964 GB, free: 50.77 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007322/2.044, allocations: 6.666 MB / 1.003 GB, free: 50.72 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002289/2.046, allocations: 2.323 MB / 1.005 GB, free: 48.73 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.764e-05/2.046, allocations: 87.95 kB / 1.005 GB, free: 48.68 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=425): time 8.156e-06/2.046, allocations: 0 / 1.005 GB, free: 48.68 MB / 0.5417 GB Notification: Performance of matching and sorting (n=513): time 0.1048/2.151, allocations: 52.15 MB / 1.056 GB, free: 35.5 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/2.151, allocations: 310.9 kB / 1.056 GB, free: 35.18 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01306/2.164, allocations: 6.594 MB / 1.063 GB, free: 32.83 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001514/2.166, allocations: 29.33 kB / 1.063 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.004953/2.171, allocations: 7.233 MB / 1.07 GB, free: 27.41 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002811/2.173, allocations: 1.836 MB / 1.072 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001222/2.175, allocations: 2.062 kB / 1.072 GB, free: 26.04 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0005756/2.175, allocations: 0.8573 MB / 1.073 GB, free: 25.49 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007452/2.183, allocations: 5.293 MB / 1.078 GB, free: 23.58 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01181/2.194, allocations: 12.36 MB / 1.09 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/2.205, allocations: 7.989 MB / 1.098 GB, free: 5.383 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001898/2.206, allocations: 72 kB / 1.098 GB, free: 5.312 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1684) (initialization): time 0.04073/2.246, allocations: 19.27 MB / 1.117 GB, free: 6.215 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000189/2.246, allocations: 113.6 kB / 1.117 GB, free: 6.105 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004287/2.247, allocations: 248 kB / 1.117 GB, free: 5.863 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008812/2.256, allocations: 3.251 MB / 1.12 GB, free: 3.473 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0126/2.268, allocations: 3.14 MB / 1.123 GB, free: 0.8555 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0324/2.301, allocations: 21.42 MB / 1.144 GB, free: 14.28 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0124/2.313, allocations: 0.5172 MB / 1.145 GB, free: 13.89 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003973/2.317, allocations: 0.7484 MB / 1.145 GB, free: 13.18 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1140 * Number of states: 0 () * Number of discrete variables: 120 (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.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1564): * Single equations (assignments): 1557 * 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%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005073/2.322, allocations: 0.7702 MB / 1.146 GB, free: 12.41 MB / 0.5886 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02556/2.348, allocations: 11.36 MB / 1.157 GB, free: 3.047 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002647/2.351, allocations: 0.7444 MB / 1.158 GB, free: 2.293 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02576/2.376, allocations: 11.75 MB / 1.169 GB, free: 9.266 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001124/2.377, allocations: 57.72 kB / 1.169 GB, free: 9.211 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-05/2.377, allocations: 16 kB / 1.169 GB, free: 9.195 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001377/2.377, allocations: 28.05 kB / 1.169 GB, free: 9.191 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05632/2.433, allocations: 24.05 MB / 1.193 GB, free: 3.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.242e-05/2.433, allocations: 8 kB / 1.193 GB, free: 3.562 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005741/2.439, allocations: 0.9867 MB / 1.194 GB, free: 2.574 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4161/2.855, allocations: 2.791 MB / 1.197 GB, free: 166.9 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001627/2.857, allocations: 13.05 kB / 1.197 GB, free: 166.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02803/2.885, allocations: 19.77 MB / 1.216 GB, free: 161.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/2.885, allocations: 0.5625 kB / 1.216 GB, free: 161.8 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03251/2.917, allocations: 18.33 MB / 1.234 GB, free: 160.8 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002693/2.92, allocations: 0.7366 MB / 1.235 GB, free: 160.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003596/2.924, allocations: 10.94 kB / 1.235 GB, free: 160.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007533/2.931, allocations: 324.5 kB / 1.235 GB, free: 160.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002594/2.934, allocations: 298.7 kB / 1.235 GB, free: 160.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007777/2.935, allocations: 129.3 kB / 1.235 GB, free: 160.7 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.01155/2.946, allocations: 4.441 MB / 1.24 GB, free: 160.5 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.375e-06/2.946, allocations: 0 / 1.24 GB, free: 160.5 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01639/2.963, allocations: 2.266 MB / 1.242 GB, free: 160.5 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (421): * Single equations (assignments): 414 * 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.03179/2.995, allocations: 19.14 MB / 1.261 GB, free: 154.1 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.02474/3.019, allocations: 13.68 MB / 1.274 GB, free: 149.7 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/3.019, allocations: 3.594 kB / 1.274 GB, free: 149.7 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.01093/3.03, allocations: 5.868 MB / 1.28 GB, free: 147.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008702/3.039, allocations: 0.9 MB / 1.281 GB, free: 147.1 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0727/3.112, allocations: 24.06 MB / 1.304 GB, free: 138.3 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01521/3.127, allocations: 7.599 MB / 1.311 GB, free: 132.8 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.01532/3.143, allocations: 4.112 MB / 1.315 GB, free: 130.2 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01026/3.153, allocations: 5.236 MB / 1.321 GB, free: 125.4 MB / 0.6198 GB Notification: Performance of SimCode: time 1.883e-06/3.153, allocations: 0 / 1.321 GB, free: 125.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6664/3.819, allocations: 184.5 MB / 1.501 GB, free: 149.6 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/3.82, allocations: 127.1 kB / 1.501 GB, free: 149.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.802/11.62, allocations: 0 / 1.501 GB, free: 149.4 MB / 0.6198 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Torque3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat