Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",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.0016/0.001604, allocations: 182.6 kB / 16.4 MB, free: 5.754 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.198/2.198, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001168/0.001168, allocations: 104.4 kB / 270.9 MB, free: 8.355 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.5262/0.5263, allocations: 43.55 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005786/0.0005788, allocations: 19.98 kB / 431.5 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1419, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.386/0.5279, allocations: 45.6 MB / 0.5233 GB, free: 17.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02958/0.5576, allocations: 11.01 MB / 0.5341 GB, free: 10.49 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01109/0.5687, allocations: 218.9 kB / 0.5343 GB, free: 10.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008277/0.577, allocations: 2.265 MB / 0.5365 GB, free: 9.719 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0243/0.6014, allocations: 6.566 MB / 0.5429 GB, free: 6.609 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004381/0.6058, allocations: 0.6027 MB / 0.5435 GB, free: 6.375 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03695/0.6428, allocations: 14.11 MB / 0.5573 GB, free: 2.262 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009923/0.6528, allocations: 4.346 MB / 0.5615 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002931/0.6558, allocations: 1.017 MB / 0.5625 GB, free: 20 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003769/0.6596, allocations: 1.435 MB / 0.5639 GB, free: 14.92 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001219/0.6609, allocations: 156 kB / 0.5641 GB, free: 14.77 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003527/0.6644, allocations: 0.9206 MB / 0.565 GB, free: 13.85 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003274/0.6678, allocations: 1.648 MB / 0.5666 GB, free: 12.2 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001879/0.6697, allocations: 0.8856 MB / 0.5675 GB, free: 11.3 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01086/0.6806, allocations: 6.211 MB / 0.5735 GB, free: 5.078 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.6807, allocations: 0 / 0.5735 GB, free: 5.078 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.6807, allocations: 0 / 0.5735 GB, free: 5.078 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002583/0.681, allocations: 0 / 0.5735 GB, free: 5.078 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1645 * Number of variables: 1645 Notification: Performance of Generate backend data structure: time 0.01629/0.6972, allocations: 4.296 MB / 0.5777 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.6973, allocations: 8.031 kB / 0.5777 GB, free: 0.707 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002766/0.7001, allocations: 0.7737 MB / 0.5785 GB, free: 15.92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1759/0.8761, allocations: 8.417 MB / 0.5867 GB, free: 7.484 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009758/0.8859, allocations: 2.856 MB / 0.5895 GB, free: 4.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003522/0.8863, allocations: 254.4 kB / 0.5897 GB, free: 4.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001724/0.888, allocations: 339.7 kB / 0.5901 GB, free: 3.988 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02785/0.9159, allocations: 10.4 MB / 0.6002 GB, free: 8.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001942/0.9162, allocations: 47.59 kB / 0.6003 GB, free: 8.863 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008225/0.917, allocations: 163.8 kB / 0.6004 GB, free: 8.703 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006225/0.9233, allocations: 2.092 MB / 0.6025 GB, free: 6.609 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02672/0.95, allocations: 8.643 MB / 0.6109 GB, free: 13.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07388/1.024, allocations: 38.53 MB / 0.6485 GB, free: 6.328 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01023/1.034, allocations: 3.004 MB / 0.6515 GB, free: 3.18 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006473/1.035, allocations: 344.1 kB / 0.6518 GB, free: 2.789 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.843e-05/1.035, allocations: 47.56 kB / 0.6518 GB, free: 2.734 MB / 474.7 MB Notification: Performance of pre-optimization done (n=176): time 5.64e-06/1.035, allocations: 4 kB / 0.6518 GB, free: 2.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=194): time 0.05969/1.095, allocations: 14.46 MB / 0.666 GB, free: 4.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/1.095, allocations: 205.1 kB / 0.6662 GB, free: 3.824 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3451/1.44, allocations: 3.954 MB / 0.67 GB, free: 135.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004682/1.441, allocations: 53.88 kB / 0.6701 GB, free: 135.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002998/1.444, allocations: 3.149 MB / 0.6731 GB, free: 134.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001345/1.445, allocations: 0.7379 MB / 0.6739 GB, free: 133.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007296/1.446, allocations: 119.4 kB / 0.674 GB, free: 133.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005682/1.446, allocations: 0.5608 MB / 0.6745 GB, free: 133.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007267/1.454, allocations: 2.151 MB / 0.6766 GB, free: 133.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00938/1.463, allocations: 5.813 MB / 0.6823 GB, free: 128.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008544/1.472, allocations: 3.442 MB / 0.6857 GB, free: 127.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000203/1.472, allocations: 38.16 kB / 0.6857 GB, free: 127.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=783) (initialization): time 0.02204/1.494, allocations: 7.877 MB / 0.6934 GB, free: 124.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/1.494, allocations: 63.02 kB / 0.6935 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002133/1.494, allocations: 128.2 kB / 0.6936 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001633/1.496, allocations: 461.1 kB / 0.694 GB, free: 124 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009064/1.505, allocations: 1.434 MB / 0.6954 GB, free: 123.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006198/1.511, allocations: 3.404 MB / 0.6987 GB, free: 121.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006962/1.518, allocations: 362.3 kB / 0.6991 GB, free: 121.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/1.52, allocations: 368.5 kB / 0.6994 GB, free: 121.6 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 30 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (745): * Single equations (assignments): 741 * 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.005799/1.526, allocations: 2.237 MB / 0.7016 GB, free: 120.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008804/1.526, allocations: 341.4 kB / 0.7019 GB, free: 120.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009048/1.536, allocations: 2.921 MB / 0.7048 GB, free: 119.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.324e-05/1.536, allocations: 23.45 kB / 0.7048 GB, free: 119.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.561e-05/1.536, allocations: 6.578 kB / 0.7048 GB, free: 119.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-05/1.536, allocations: 10.08 kB / 0.7048 GB, free: 119.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0239/1.56, allocations: 7.84 MB / 0.7125 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.49e-05/1.56, allocations: 1.094 kB / 0.7125 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003401/1.563, allocations: 350.2 kB / 0.7128 GB, free: 116.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001354/1.565, allocations: 260.6 kB / 0.7131 GB, free: 116.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004182/1.565, allocations: 37.39 kB / 0.7131 GB, free: 116.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005225/1.57, allocations: 2.979 MB / 0.716 GB, free: 114.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.57, allocations: 1.031 kB / 0.716 GB, free: 114.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01543/1.586, allocations: 5.607 MB / 0.7215 GB, free: 111.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002424/1.588, allocations: 0.6421 MB / 0.7221 GB, free: 111.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001121/1.589, allocations: 28.34 kB / 0.7222 GB, free: 111.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003378/1.593, allocations: 132.2 kB / 0.7223 GB, free: 111.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008946/1.594, allocations: 127.6 kB / 0.7224 GB, free: 111.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003709/1.594, allocations: 58.39 kB / 0.7225 GB, free: 111.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007517/1.602, allocations: 2.484 MB / 0.7249 GB, free: 110.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.602, allocations: 0 / 0.7249 GB, free: 110.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00769/1.609, allocations: 1.02 MB / 0.7259 GB, free: 110.5 MB / 490.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 160 * 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.01537/1.625, allocations: 6.443 MB / 0.7322 GB, free: 107.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0126/1.638, allocations: 5.169 MB / 0.7372 GB, free: 105.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/1.638, allocations: 0 / 0.7372 GB, free: 105.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004184/1.642, allocations: 1.66 MB / 0.7388 GB, free: 103.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00314/1.645, allocations: 387.7 kB / 0.7392 GB, free: 103.4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1044/1.749, allocations: 123.7 MB / 0.86 GB, free: 9.539 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007861/1.757, allocations: 3.552 MB / 0.8635 GB, free: 5.953 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005332/1.763, allocations: 2.042 MB / 0.8655 GB, free: 3.914 MB / 0.5105 GB Notification: Performance of SimCode: time 2.084e-06/1.763, allocations: 4 kB / 0.8655 GB, free: 3.91 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.791/6.554, allocations: 103.9 MB / 0.967 GB, free: 98.21 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat does not exist to compare? outputFormat=mat