Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002203/0.002203, allocations: 174 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 221.5 MB / 230.7 MB, free: 7.512 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 99.75 kB / 281.6 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2075/0.2075, allocations: 44.15 MB / 376.5 MB, free: 3.023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.193e-05/2.188e-05, allocations: 8.156 kB / 444.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.119, allocations: 61.92 MB / 0.4948 GB, free: 1.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4198/0.5389, allocations: 106.3 MB / 0.5986 GB, free: 5.945 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.5392, allocations: 75.97 kB / 0.5987 GB, free: 5.871 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6068/1.146, allocations: 130.1 MB / 0.7258 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.583e-06/1.146, allocations: 0 / 0.7258 GB, free: 103.7 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003612/1.146, allocations: 130.2 kB / 0.7259 GB, free: 103.7 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: 2215 * Number of variables: 2215 Notification: Performance of Generate backend data structure: time 0.02274/1.169, allocations: 6.376 MB / 0.7321 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/1.169, allocations: 11.7 kB / 0.7321 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03482/1.204, allocations: 9.422 MB / 0.7413 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02198/1.226, allocations: 8.098 MB / 0.7493 GB, free: 99.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003831/1.227, allocations: 214.4 kB / 0.7495 GB, free: 99.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00346/1.23, allocations: 384 kB / 0.7498 GB, free: 99.78 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0156/1.246, allocations: 8.432 MB / 0.7581 GB, free: 99.29 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03014/1.276, allocations: 13.29 MB / 0.771 GB, free: 92.08 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003547/1.276, allocations: 103 kB / 0.7711 GB, free: 92.06 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002073/1.278, allocations: 43.84 kB / 0.7712 GB, free: 92.06 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001728/1.28, allocations: 1.345 MB / 0.7725 GB, free: 91.83 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06281/1.343, allocations: 64.95 MB / 0.8359 GB, free: 35.43 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00442/1.347, allocations: 3.989 MB / 0.8398 GB, free: 31.55 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002647/1.35, allocations: 2.519 MB / 0.8423 GB, free: 29.02 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001044/1.35, allocations: 36.2 kB / 0.8423 GB, free: 29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/1.35, allocations: 59.33 kB / 0.8424 GB, free: 28.93 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=186): time 5.32e-06/1.35, allocations: 0 / 0.8424 GB, free: 28.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=207): time 0.039/1.389, allocations: 23.2 MB / 0.865 GB, free: 5.547 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/1.389, allocations: 256.5 kB / 0.8653 GB, free: 5.238 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007686/1.397, allocations: 4.66 MB / 0.8698 GB, free: 0.6016 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005039/1.398, allocations: 25.7 kB / 0.8698 GB, free: 0.5703 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004568/1.402, allocations: 4.769 MB / 0.8745 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001529/1.404, allocations: 0.8023 MB / 0.8753 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006388/1.404, allocations: 0 / 0.8753 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005301/1.405, allocations: 0.6409 MB / 0.8759 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00389/1.409, allocations: 2.304 MB / 0.8782 GB, free: 8.031 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009671/1.419, allocations: 7.337 MB / 0.8853 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007191/1.426, allocations: 4.088 MB / 0.8893 GB, free: 10.05 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001528/1.426, allocations: 52 kB / 0.8894 GB, free: 10 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1038) (initialization): time 0.02254/1.449, allocations: 9.058 MB / 0.8982 GB, free: 0.9258 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001609/1.449, allocations: 87.95 kB / 0.8983 GB, free: 0.8398 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002796/1.449, allocations: 180 kB / 0.8985 GB, free: 0.6641 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3861/1.835, allocations: 0.8105 MB / 0.8993 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007929/1.843, allocations: 1.815 MB / 0.901 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009885/1.853, allocations: 8.185 MB / 0.909 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007445/1.861, allocations: 271.4 kB / 0.9093 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002371/1.863, allocations: 0.492 MB / 0.9098 GB, free: 113.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.arrowLine.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[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],worldTorque2.arrow.arrowLine.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque2.color[3],worldTorque2.color[2],worldTorque2.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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,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],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 (972): * Single equations (assignments): 966 * 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%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00256/1.866, allocations: 0.5605 MB / 0.9103 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007173/1.873, allocations: 3.477 MB / 0.9137 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/1.874, allocations: 485 kB / 0.9142 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006909/1.881, allocations: 3.214 MB / 0.9173 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.517e-05/1.881, allocations: 24.53 kB / 0.9173 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.624e-05/1.881, allocations: 7.344 kB / 0.9173 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-05/1.881, allocations: 11.95 kB / 0.9173 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01504/1.896, allocations: 8.456 MB / 0.9256 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/1.896, allocations: 0 / 0.9256 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/1.898, allocations: 313.3 kB / 0.9259 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001328/1.899, allocations: 0.5128 MB / 0.9264 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/1.899, allocations: 6.781 kB / 0.9264 GB, free: 112.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006149/1.906, allocations: 7.266 MB / 0.9335 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.906, allocations: 1.75 kB / 0.9335 GB, free: 109.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006996/1.913, allocations: 5.986 MB / 0.9394 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001418/1.914, allocations: 0.5027 MB / 0.9398 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000566/1.915, allocations: 3.906 kB / 0.9399 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001798/1.916, allocations: 82.52 kB / 0.9399 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/1.917, allocations: 131.2 kB / 0.9401 GB, free: 108 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/1.917, allocations: 57.48 kB / 0.9401 GB, free: 108 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005378/1.922, allocations: 3.156 MB / 0.9432 GB, free: 107 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.5e-07/1.922, allocations: 0 / 0.9432 GB, free: 107 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00916/1.931, allocations: 1.196 MB / 0.9444 GB, free: 107 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.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 (156): * Single equations (assignments): 150 * 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%) 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.00831/1.94, allocations: 6.818 MB / 0.951 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009188/1.949, allocations: 5.876 MB / 0.9568 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.949, allocations: 0 / 0.9568 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002358/1.951, allocations: 1.899 MB / 0.9586 GB, free: 100.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004002/1.955, allocations: 0.6165 MB / 0.9592 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03205/1.988, allocations: 12.68 MB / 0.9716 GB, free: 96.38 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007939/1.996, allocations: 4.809 MB / 0.9763 GB, free: 94.77 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007225/2.003, allocations: 2.489 MB / 0.9787 GB, free: 94.72 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005308/2.008, allocations: 2.995 MB / 0.9816 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of SimCode: time 1.463e-06/2.008, allocations: 0 / 0.9816 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1613/2.17, allocations: 102 MB / 1.081 GB, free: 7.441 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/2.17, allocations: 136.8 kB / 1.081 GB, free: 7.246 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.795/7.964, allocations: 7.938 kB / 1.081 GB, free: 7.238 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldTorques.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldTorques_res.mat does not exist to compare? outputFormat=mat