Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.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.WorldForces,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces",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.002127/0.002127, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.998/1.998, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001077/0.001076, allocations: 94.56 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2967/0.2967, allocations: 43.49 MB / 353.5 MB, free: 2.289 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.033e-05/2.041e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3995/0.3996, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.203/0.6026, allocations: 108 MB / 0.5715 GB, free: 7.152 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002958/0.603, allocations: 79.97 kB / 0.5716 GB, free: 7.074 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9503/1.553, allocations: 149.4 MB / 0.7175 GB, free: 90.11 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.434e-06/1.553, allocations: 0 / 0.7175 GB, free: 90.11 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005329/1.554, allocations: 152 kB / 0.7176 GB, free: 89.96 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2705 * Number of variables: 2705 Notification: Performance of Generate backend data structure: time 0.03026/1.584, allocations: 7.385 MB / 0.7248 GB, free: 82.51 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/1.584, allocations: 8.031 kB / 0.7248 GB, free: 82.5 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0699/1.654, allocations: 9.627 MB / 0.7342 GB, free: 72.85 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03327/1.687, allocations: 9.138 MB / 0.7431 GB, free: 63.72 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005084/1.688, allocations: 252 kB / 0.7434 GB, free: 63.47 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004135/1.692, allocations: 459.8 kB / 0.7438 GB, free: 63.02 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02721/1.719, allocations: 10.44 MB / 0.754 GB, free: 52.58 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04301/1.762, allocations: 16.12 MB / 0.7698 GB, free: 34.82 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006286/1.763, allocations: 107 kB / 0.7699 GB, free: 34.71 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003695/1.767, allocations: 56 kB / 0.7699 GB, free: 34.66 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003768/1.771, allocations: 1.702 MB / 0.7716 GB, free: 32.96 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6074/2.378, allocations: 77.69 MB / 0.8474 GB, free: 65.88 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01268/2.391, allocations: 5.862 MB / 0.8532 GB, free: 65.16 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008326/2.399, allocations: 3.982 MB / 0.8571 GB, free: 65.11 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003957/2.4, allocations: 67.42 kB / 0.8571 GB, free: 65.11 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.788e-05/2.4, allocations: 65.28 kB / 0.8572 GB, free: 65.07 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=307): time 7.564e-06/2.4, allocations: 1.031 kB / 0.8572 GB, free: 65.07 MB / 0.4952 GB Notification: Performance of matching and sorting (n=340): time 0.1037/2.504, allocations: 30.09 MB / 0.8866 GB, free: 58.46 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/2.504, allocations: 303.2 kB / 0.8869 GB, free: 58.14 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01333/2.517, allocations: 5.125 MB / 0.8919 GB, free: 57.12 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.001042/2.518, allocations: 25.7 kB / 0.8919 GB, free: 57.09 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004959/2.523, allocations: 5.304 MB / 0.8971 GB, free: 52.98 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002368/2.526, allocations: 1.245 MB / 0.8983 GB, free: 52.06 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00168/2.527, allocations: 0 / 0.8983 GB, free: 52.06 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0009758/2.528, allocations: 0.733 MB / 0.899 GB, free: 51.57 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008906/2.537, allocations: 3.483 MB / 0.9024 GB, free: 50.31 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01299/2.55, allocations: 9.285 MB / 0.9115 GB, free: 41.23 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01259/2.563, allocations: 5.614 MB / 0.9169 GB, free: 39.51 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002866/2.563, allocations: 59.88 kB / 0.917 GB, free: 39.51 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1292) (initialization): time 0.03602/2.599, allocations: 12.45 MB / 0.9292 GB, free: 34.85 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/2.6, allocations: 94.38 kB / 0.9293 GB, free: 34.76 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003152/2.6, allocations: 208 kB / 0.9295 GB, free: 34.55 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005546/2.605, allocations: 1.384 MB / 0.9308 GB, free: 33.47 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01507/2.621, allocations: 2.321 MB / 0.9331 GB, free: 31.47 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01856/2.639, allocations: 10.67 MB / 0.9435 GB, free: 21.67 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01183/2.651, allocations: 362.6 kB / 0.9438 GB, free: 21.39 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002776/2.654, allocations: 0.5908 MB / 0.9444 GB, free: 20.81 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 944 * Number of states: 0 () * Number of discrete variables: 63 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1217): * Single equations (assignments): 1211 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 14,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004/2.658, allocations: 0.6342 MB / 0.945 GB, free: 20.18 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0184/2.676, allocations: 6.253 MB / 0.9511 GB, free: 14.87 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002426/2.679, allocations: 0.5581 MB / 0.9517 GB, free: 14.3 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0186/2.698, allocations: 6.251 MB / 0.9578 GB, free: 9.219 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001021/2.698, allocations: 36.55 kB / 0.9578 GB, free: 9.184 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.651e-05/2.698, allocations: 12 kB / 0.9578 GB, free: 9.172 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001003/2.698, allocations: 16.17 kB / 0.9579 GB, free: 9.172 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06139/2.759, allocations: 14.13 MB / 0.9717 GB, free: 14.45 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.964e-05/2.759, allocations: 0 / 0.9717 GB, free: 14.45 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006489/2.766, allocations: 0.5862 MB / 0.9722 GB, free: 13.98 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005438/2.771, allocations: 1.047 MB / 0.9732 GB, free: 13.23 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009786/2.772, allocations: 11.19 kB / 0.9733 GB, free: 13.22 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02129/2.794, allocations: 9.725 MB / 0.9828 GB, free: 4.219 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/2.794, allocations: 0 / 0.9828 GB, free: 4.219 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03754/2.831, allocations: 11.22 MB / 0.9937 GB, free: 11.88 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005206/2.837, allocations: 1.083 MB / 0.9948 GB, free: 10.87 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002276/2.839, allocations: 7.047 kB / 0.9948 GB, free: 10.87 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006152/2.845, allocations: 156.5 kB / 0.9949 GB, free: 10.79 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001441/2.847, allocations: 192.7 kB / 0.9951 GB, free: 10.67 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005784/2.847, allocations: 87.8 kB / 0.9952 GB, free: 10.59 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.01125/2.858, allocations: 3.459 MB / 0.9986 GB, free: 7.578 MB / 0.5265 GB Notification: Performance of sort global known variables: time 8.52e-07/2.859, allocations: 0 / 0.9986 GB, free: 7.578 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.01454/2.873, allocations: 1.545 MB / 1 GB, free: 6.039 MB / 0.5265 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 18,(1,100.0%) 11,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03182/2.905, allocations: 11.64 MB / 1.011 GB, free: 10.79 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.02464/2.93, allocations: 8.772 MB / 1.02 GB, free: 2.023 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/2.93, allocations: 0 / 1.02 GB, free: 2.023 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.009732/2.939, allocations: 3.379 MB / 1.023 GB, free: 14.61 MB / 0.5577 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007149/2.947, allocations: 0.6254 MB / 1.024 GB, free: 14 MB / 0.5577 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06338/3.01, allocations: 17.2 MB / 1.041 GB, free: 12.77 MB / 0.5733 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01574/3.026, allocations: 5.635 MB / 1.046 GB, free: 7.152 MB / 0.5733 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01133/3.037, allocations: 3.674 MB / 1.05 GB, free: 3.477 MB / 0.5733 GB Notification: Performance of SimCode: time 1.853e-06/3.037, allocations: 4 kB / 1.05 GB, free: 3.473 MB / 0.5733 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.359/9.397, allocations: 236.3 MB / 1.281 GB, free: 163.6 MB / 0.5733 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_WorldForces.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.WorldForces_res.mat does not exist to compare? outputFormat=mat