Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",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.001482/0.001482, allocations: 174.5 kB / 8.743 MB, free: 344 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.461/1.461, allocations: 221.5 MB / 230.7 MB, free: 7.566 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.0009762/0.0009762, allocations: 94.23 kB / 281.6 MB, free: 5.324 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.1989/0.1989, allocations: 44.16 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.123e-05/2.114e-05, allocations: 224 / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1515, allocations: 61.93 MB / 0.4948 GB, free: 1.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4534/0.6049, allocations: 109.6 MB / 0.6018 GB, free: 2.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002657/0.6053, allocations: 79.95 kB / 0.6019 GB, free: 2.691 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2129/0.8182, allocations: 82.09 MB / 0.6821 GB, free: 88 kB / 490.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.8182, allocations: 0 / 0.6821 GB, free: 88 kB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001868/0.8184, allocations: 76 kB / 0.6821 GB, free: 12 kB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.01153/0.8299, allocations: 3.811 MB / 0.6859 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.83, allocations: 11.98 kB / 0.6859 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01833/0.8484, allocations: 4.347 MB / 0.6901 GB, free: 7.77 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/0.8621, allocations: 4.386 MB / 0.6944 GB, free: 3.316 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002067/0.8624, allocations: 136 kB / 0.6945 GB, free: 3.184 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001805/0.8642, allocations: 243.9 kB / 0.6948 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3516/1.216, allocations: 5.527 MB / 0.7002 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02183/1.238, allocations: 8.738 MB / 0.7087 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002649/1.238, allocations: 60.58 kB / 0.7087 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009247/1.239, allocations: 31.28 kB / 0.7088 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001442/1.24, allocations: 0.8495 MB / 0.7096 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04396/1.284, allocations: 41.49 MB / 0.7501 GB, free: 87.07 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002343/1.287, allocations: 2.137 MB / 0.7522 GB, free: 85.84 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/1.288, allocations: 1.116 MB / 0.7533 GB, free: 85.38 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003103/1.288, allocations: 329.2 kB / 0.7536 GB, free: 85.08 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/1.288, allocations: 44.84 kB / 0.7537 GB, free: 85.04 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=122): time 3.737e-06/1.288, allocations: 3.5 kB / 0.7537 GB, free: 85.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=141): time 0.01679/1.305, allocations: 10.56 MB / 0.764 GB, free: 80.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/1.305, allocations: 193.4 kB / 0.7642 GB, free: 80.09 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004008/1.309, allocations: 2.811 MB / 0.7669 GB, free: 79.05 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000236/1.309, allocations: 29.45 kB / 0.7669 GB, free: 79.02 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001509/1.311, allocations: 3.019 MB / 0.7699 GB, free: 76.83 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005152/1.312, allocations: 0.5506 MB / 0.7704 GB, free: 76.43 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/1.312, allocations: 0 / 0.7704 GB, free: 76.43 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002467/1.312, allocations: 0.5346 MB / 0.7709 GB, free: 76.03 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/1.314, allocations: 1.521 MB / 0.7724 GB, free: 75.52 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003266/1.317, allocations: 5.049 MB / 0.7774 GB, free: 70.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003955/1.321, allocations: 2.756 MB / 0.78 GB, free: 69.25 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001041/1.321, allocations: 39.81 kB / 0.7801 GB, free: 69.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=718) (initialization): time 0.01287/1.334, allocations: 5.9 MB / 0.7858 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002515/1.334, allocations: 61.83 kB / 0.7859 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003406/1.335, allocations: 127.9 kB / 0.786 GB, free: 67.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/1.336, allocations: 382 kB / 0.7864 GB, free: 67.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004306/1.34, allocations: 1.285 MB / 0.7876 GB, free: 67 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002996/1.343, allocations: 2.875 MB / 0.7905 GB, free: 65.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004469/1.348, allocations: 199.3 kB / 0.7906 GB, free: 65.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001084/1.349, allocations: 352.6 kB / 0.791 GB, free: 65.01 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 579 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (680): * Single equations (assignments): 676 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001343/1.35, allocations: 426.8 kB / 0.7914 GB, free: 64.66 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003551/1.354, allocations: 1.977 MB / 0.7933 GB, free: 63.96 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000558/1.354, allocations: 289.5 kB / 0.7936 GB, free: 63.81 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/1.357, allocations: 1.58 MB / 0.7951 GB, free: 63.24 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.041e-05/1.357, allocations: 18.34 kB / 0.7952 GB, free: 63.24 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/1.357, allocations: 3.469 kB / 0.7952 GB, free: 63.24 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/1.357, allocations: 10.89 kB / 0.7952 GB, free: 63.23 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009633/1.367, allocations: 4.845 MB / 0.7999 GB, free: 61.44 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/1.367, allocations: 3.625 kB / 0.7999 GB, free: 61.44 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/1.368, allocations: 232.8 kB / 0.8001 GB, free: 61.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004855/1.369, allocations: 174.7 kB / 0.8003 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/1.369, allocations: 11.77 kB / 0.8003 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002085/1.371, allocations: 2.454 MB / 0.8027 GB, free: 59.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.371, allocations: 0 / 0.8027 GB, free: 59.57 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003979/1.375, allocations: 3.58 MB / 0.8062 GB, free: 57.58 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007598/1.376, allocations: 327.6 kB / 0.8065 GB, free: 57.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004228/1.376, allocations: 0 / 0.8065 GB, free: 57.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/1.377, allocations: 63.8 kB / 0.8066 GB, free: 57.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002368/1.377, allocations: 104.2 kB / 0.8067 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.964e-05/1.378, allocations: 38.41 kB / 0.8067 GB, free: 57.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002973/1.38, allocations: 1.86 MB / 0.8085 GB, free: 55.49 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.91e-07/1.381, allocations: 4 kB / 0.8085 GB, free: 55.49 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005375/1.386, allocations: 0.7356 MB / 0.8092 GB, free: 54.76 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005324/1.391, allocations: 4.371 MB / 0.8135 GB, free: 50.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006055/1.397, allocations: 3.685 MB / 0.8171 GB, free: 47.51 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.397, allocations: 4 kB / 0.8171 GB, free: 47.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001375/1.399, allocations: 1.036 MB / 0.8181 GB, free: 46.57 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/1.401, allocations: 328.4 kB / 0.8184 GB, free: 46.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01818/1.419, allocations: 7.712 MB / 0.826 GB, free: 39.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002927/1.422, allocations: 3.245 MB / 0.8291 GB, free: 37.16 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004316/1.427, allocations: 1.776 MB / 0.8309 GB, free: 36.06 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00246/1.429, allocations: 1.76 MB / 0.8326 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of SimCode: time 1.132e-06/1.429, allocations: 0 / 0.8326 GB, free: 34.43 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09907/1.528, allocations: 60.94 MB / 0.8921 GB, free: 9.688 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003172/1.529, allocations: 158.1 kB / 0.8923 GB, free: 9.484 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.772/5.301, allocations: 3.938 kB / 0.8923 GB, free: 9.48 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat does not exist to compare? outputFormat=mat