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.002381/0.002381, allocations: 185.3 kB / 16.41 MB, free: 5.727 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.184/2.184, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.00127/0.00127, allocations: 92.42 kB / 270.9 MB, free: 8.387 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.5064/0.5064, allocations: 43.57 MB / 362.7 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006482/0.0006482, allocations: 15.98 kB / 431.5 MB, free: 5.848 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1376, allocations: 58.83 MB / 490.3 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5081/0.6458, allocations: 108.8 MB / 0.5851 GB, free: 9.598 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/0.6461, allocations: 79.95 kB / 0.5851 GB, free: 9.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.017/1.663, allocations: 152.6 MB / 0.7342 GB, free: 83.57 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.136e-06/1.663, allocations: 0 / 0.7342 GB, free: 83.57 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005419/1.664, allocations: 150.7 kB / 0.7343 GB, free: 83.57 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: 2705 * Number of variables: 2705 Notification: Performance of Generate backend data structure: time 0.03467/1.699, allocations: 8.039 MB / 0.7422 GB, free: 80.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/1.699, allocations: 7.281 kB / 0.7422 GB, free: 80.34 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00704/1.706, allocations: 1.351 MB / 0.7435 GB, free: 79.74 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07/1.776, allocations: 9.619 MB / 0.7529 GB, free: 78.23 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03306/1.809, allocations: 9.179 MB / 0.7618 GB, free: 74.86 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007824/1.81, allocations: 0.5729 MB / 0.7624 GB, free: 74.63 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004612/1.814, allocations: 0.77 MB / 0.7632 GB, free: 74.41 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05673/1.871, allocations: 18.18 MB / 0.7809 GB, free: 63.5 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000732/1.872, allocations: 117.6 kB / 0.781 GB, free: 63.43 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004395/1.876, allocations: 371.2 kB / 0.7814 GB, free: 63.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003939/1.88, allocations: 1.692 MB / 0.783 GB, free: 62.64 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04513/1.926, allocations: 14.63 MB / 0.7973 GB, free: 48.53 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5612/2.487, allocations: 80.91 MB / 0.8763 GB, free: 38.3 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02961/2.517, allocations: 7.215 MB / 0.8834 GB, free: 37.59 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004679/2.517, allocations: 59.81 kB / 0.8834 GB, free: 37.59 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.259e-05/2.517, allocations: 69.28 kB / 0.8835 GB, free: 37.55 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=307): time 7.444e-06/2.517, allocations: 0 / 0.8835 GB, free: 37.55 MB / 0.4949 GB Notification: Performance of matching and sorting (n=340): time 0.1368/2.654, allocations: 31.78 MB / 0.9145 GB, free: 30.14 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/2.654, allocations: 296.2 kB / 0.9148 GB, free: 29.83 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02083/2.675, allocations: 6.607 MB / 0.9213 GB, free: 29.33 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001007/2.676, allocations: 77.14 kB / 0.9213 GB, free: 29.3 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005127/2.681, allocations: 5.092 MB / 0.9263 GB, free: 26.43 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002521/2.684, allocations: 1.285 MB / 0.9276 GB, free: 25.7 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002014/2.686, allocations: 197.6 kB / 0.9278 GB, free: 25.7 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.00104/2.687, allocations: 0.7146 MB / 0.9285 GB, free: 25.36 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01023/2.697, allocations: 3.691 MB / 0.9321 GB, free: 24.66 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0143/2.711, allocations: 9.303 MB / 0.9411 GB, free: 15.92 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01367/2.725, allocations: 5.735 MB / 0.9468 GB, free: 13.96 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000226/2.726, allocations: 54.22 kB / 0.9468 GB, free: 13.96 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.0387/2.764, allocations: 13.66 MB / 0.9601 GB, free: 9.723 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/2.764, allocations: 92.08 kB / 0.9602 GB, free: 9.719 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003679/2.765, allocations: 199.6 kB / 0.9604 GB, free: 9.719 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005812/2.771, allocations: 1.375 MB / 0.9618 GB, free: 9.48 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01454/2.785, allocations: 2.246 MB / 0.964 GB, free: 9.211 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02042/2.806, allocations: 11.51 MB / 0.9752 GB, free: 18.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01208/2.818, allocations: 0.5348 MB / 0.9757 GB, free: 17.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002506/2.82, allocations: 0.5635 MB / 0.9763 GB, free: 17.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 902 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1175): * Single equations (assignments): 1169 * 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,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0112/2.832, allocations: 3.593 MB / 0.9798 GB, free: 16.22 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0023/2.834, allocations: 0.6509 MB / 0.9804 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02277/2.857, allocations: 6.672 MB / 0.9869 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.495e-05/2.857, allocations: 37.12 kB / 0.987 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.927e-05/2.857, allocations: 14.78 kB / 0.987 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.595e-05/2.857, allocations: 15.23 kB / 0.987 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05519/2.912, allocations: 15.48 MB / 1.002 GB, free: 1.578 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.896e-05/2.912, allocations: 4 kB / 1.002 GB, free: 1.574 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006279/2.919, allocations: 0.586 MB / 1.003 GB, free: 1.105 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005441/2.924, allocations: 1.046 MB / 1.004 GB, free: 368 kB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009768/2.925, allocations: 61.09 kB / 1.004 GB, free: 308 kB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02312/2.948, allocations: 10.52 MB / 1.014 GB, free: 6.586 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.678e-06/2.948, allocations: 3.844 kB / 1.014 GB, free: 6.586 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05264/3.001, allocations: 12.49 MB / 1.026 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005779/3.007, allocations: 1.214 MB / 1.027 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002604/3.01, allocations: 56 kB / 1.027 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006742/3.016, allocations: 204 kB / 1.028 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001425/3.018, allocations: 199.4 kB / 1.028 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004356/3.018, allocations: 87.47 kB / 1.028 GB, free: 14.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01514/3.033, allocations: 4.707 MB / 1.033 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.02e-07/3.033, allocations: 0 / 1.033 GB, free: 10.56 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01496/3.048, allocations: 1.798 MB / 1.034 GB, free: 8.77 MB / 0.5417 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 () * Number of clocked 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.03577/3.084, allocations: 12.16 MB / 1.046 GB, free: 13 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.02629/3.111, allocations: 9.265 MB / 1.055 GB, free: 3.734 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/3.111, allocations: 4 kB / 1.055 GB, free: 3.73 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.01102/3.122, allocations: 3.541 MB / 1.059 GB, free: 164 kB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008309/3.13, allocations: 0.8221 MB / 1.059 GB, free: 15.38 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6436/3.774, allocations: 209.3 MB / 1.264 GB, free: 21.64 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02753/3.801, allocations: 5.622 MB / 1.269 GB, free: 20.73 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01145/3.813, allocations: 3.734 MB / 1.273 GB, free: 18.77 MB / 0.6042 GB Notification: Performance of SimCode: time 1.543e-06/3.813, allocations: 0 / 1.273 GB, free: 18.77 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.388/10.2, allocations: 243.7 MB / 1.511 GB, free: 78.96 MB / 0.6042 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