Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.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.Damper2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Damper2",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.002671/0.002671, allocations: 186.3 kB / 16.4 MB, free: 5.621 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.423/2.423, allocations: 205.4 MB / 222.5 MB, free: 13.59 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.001187/0.001187, allocations: 94.86 kB / 270.9 MB, free: 13.12 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2893/0.2893, allocations: 43.57 MB / 362.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004789/0.000479, allocations: 12 kB / 431.5 MB, free: 20.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1239, allocations: 58.86 MB / 490.3 MB, free: 9.223 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.449/0.573, allocations: 75.02 MB / 0.5521 GB, free: 5.504 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04948/0.6225, allocations: 16.83 MB / 0.5685 GB, free: 9.762 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01873/0.6413, allocations: 364.5 kB / 0.5689 GB, free: 9.711 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01555/0.6569, allocations: 3.736 MB / 0.5725 GB, free: 6.93 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04545/0.7024, allocations: 10.56 MB / 0.5828 GB, free: 13.5 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007532/0.71, allocations: 1.077 MB / 0.5839 GB, free: 12.42 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01091/0.7209, allocations: 3.952 MB / 0.5877 GB, free: 8.465 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01904/0.74, allocations: 8.491 MB / 0.596 GB, free: 15.91 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004773/0.7449, allocations: 1.771 MB / 0.5978 GB, free: 14.13 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006152/0.7511, allocations: 2.566 MB / 0.6003 GB, free: 11.56 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002037/0.7532, allocations: 280 kB / 0.6005 GB, free: 11.29 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004008/0.7572, allocations: 0.8661 MB / 0.6014 GB, free: 10.42 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005421/0.7627, allocations: 2.841 MB / 0.6042 GB, free: 7.57 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003262/0.766, allocations: 1.434 MB / 0.6056 GB, free: 6.125 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01705/0.7831, allocations: 9.393 MB / 0.6147 GB, free: 12.71 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.7832, allocations: 3.938 kB / 0.6147 GB, free: 12.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.7832, allocations: 4 kB / 0.6147 GB, free: 12.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000447/0.7836, allocations: 0 / 0.6147 GB, free: 12.7 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2765 * Number of variables: 2765 Notification: Performance of Generate backend data structure: time 0.0219/0.8055, allocations: 6.842 MB / 0.6214 GB, free: 5.773 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.8056, allocations: 8.031 kB / 0.6214 GB, free: 5.766 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004461/0.8101, allocations: 1.294 MB / 0.6227 GB, free: 4.461 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02278/0.8329, allocations: 3.266 MB / 0.6259 GB, free: 1.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01394/0.8469, allocations: 4.405 MB / 0.6302 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000676/0.8477, allocations: 467.6 kB / 0.6306 GB, free: 12.26 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002958/0.8506, allocations: 0.5855 MB / 0.6312 GB, free: 11.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07472/0.9254, allocations: 21.49 MB / 0.6522 GB, free: 5.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003586/0.9258, allocations: 75.31 kB / 0.6523 GB, free: 4.945 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002305/0.9281, allocations: 287.7 kB / 0.6525 GB, free: 4.664 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01032/0.9385, allocations: 3.545 MB / 0.656 GB, free: 1.113 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07038/1.009, allocations: 17.51 MB / 0.6731 GB, free: 15.57 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.822/1.831, allocations: 70.49 MB / 0.7419 GB, free: 138.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07651/1.908, allocations: 14.57 MB / 0.7562 GB, free: 137.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03361/1.941, allocations: 14.53 MB / 0.7703 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.06946/2.011, allocations: 12.45 MB / 0.7825 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=303): time 1.042e-05/2.011, allocations: 0 / 0.7825 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=337): time 0.2037/2.215, allocations: 42.3 MB / 0.8238 GB, free: 78.26 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.349e-05/2.215, allocations: 168.1 kB / 0.824 GB, free: 78.07 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01357/2.228, allocations: 6.381 MB / 0.8302 GB, free: 71.67 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008395/2.229, allocations: 77.7 kB / 0.8303 GB, free: 71.59 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004972/2.234, allocations: 5.147 MB / 0.8353 GB, free: 66.45 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001903/2.236, allocations: 1.283 MB / 0.8366 GB, free: 65.18 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/2.237, allocations: 200 kB / 0.8367 GB, free: 64.98 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0007459/2.238, allocations: 0.7281 MB / 0.8375 GB, free: 64.25 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009463/2.248, allocations: 3.24 MB / 0.8406 GB, free: 61 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01308/2.261, allocations: 9.022 MB / 0.8494 GB, free: 49.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01306/2.274, allocations: 5.234 MB / 0.8545 GB, free: 44.11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002053/2.274, allocations: 60 kB / 0.8546 GB, free: 44.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1288) (initialization): time 0.03339/2.308, allocations: 12.05 MB / 0.8664 GB, free: 31.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001851/2.308, allocations: 127.2 kB / 0.8665 GB, free: 31.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000296/2.308, allocations: 204 kB / 0.8667 GB, free: 31.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001465/2.31, allocations: 0.532 MB / 0.8672 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01512/2.325, allocations: 2.417 MB / 0.8696 GB, free: 28.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004081/2.329, allocations: 2.72 MB / 0.8722 GB, free: 25.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01052/2.339, allocations: 0.5595 MB / 0.8728 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002205/2.342, allocations: 0.5742 MB / 0.8733 GB, free: 24.67 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 934 * Number of states: 0 () * Number of discrete variables: 77 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],prismatic2.boxColor[3],prismatic2.boxColor[2],prismatic2.boxColor[1],damper2.color_b[3],damper2.color_b[2],damper2.color_b[1],damper2.color_a[3],damper2.color_a[2],damper2.color_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],force.connectionLineColor[3],force.connectionLineColor[2],force.connectionLineColor[1],force.forceColor[3],force.forceColor[2],force.forceColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[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 (1260): * Single equations (assignments): 1255 * Array equations: 3 * Algorithm blocks: 1 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008809/2.351, allocations: 3.406 MB / 0.8767 GB, free: 21.26 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/2.352, allocations: 0.5515 MB / 0.8772 GB, free: 20.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/2.365, allocations: 4.428 MB / 0.8815 GB, free: 16.22 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.721e-05/2.365, allocations: 40.72 kB / 0.8816 GB, free: 16.18 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/2.365, allocations: 0 / 0.8816 GB, free: 16.18 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.774e-05/2.365, allocations: 19.94 kB / 0.8816 GB, free: 16.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03887/2.404, allocations: 13.69 MB / 0.8949 GB, free: 2.055 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.394e-05/2.404, allocations: 31.95 kB / 0.895 GB, free: 2.023 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005688/2.41, allocations: 0.7061 MB / 0.8957 GB, free: 1.316 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.66e-05/2.41, allocations: 51.94 kB / 0.8957 GB, free: 1.266 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005105/2.41, allocations: 93.41 kB / 0.8958 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.897e-05/2.41, allocations: 63.78 kB / 0.8959 GB, free: 1.113 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.848e-05/2.41, allocations: 43.81 kB / 0.8959 GB, free: 1.07 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02023/2.431, allocations: 11.82 MB / 0.9074 GB, free: 3.676 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003494/2.434, allocations: 0.8996 MB / 0.9083 GB, free: 2.75 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001667/2.436, allocations: 95.97 kB / 0.9084 GB, free: 2.656 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004992/2.441, allocations: 185.3 kB / 0.9086 GB, free: 2.477 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/2.442, allocations: 297 kB / 0.9089 GB, free: 2.188 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004236/2.442, allocations: 132.7 kB / 0.909 GB, free: 2.059 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01266/2.455, allocations: 3.995 MB / 0.9129 GB, free: 14.07 MB / 0.5418 GB Notification: Performance of sort global known variables: time 5.71e-07/2.455, allocations: 4 kB / 0.9129 GB, free: 14.06 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.01215/2.467, allocations: 1.628 MB / 0.9145 GB, free: 12.44 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 128 * Number of states: 7 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (322): * Single equations (assignments): 317 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3734/2.841, allocations: 17.56 MB / 0.9317 GB, free: 193.2 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.02211/2.863, allocations: 7.324 MB / 0.9388 GB, free: 191 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.978e-05/2.863, allocations: 4.25 kB / 0.9388 GB, free: 191 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.006393/2.869, allocations: 1.874 MB / 0.9406 GB, free: 190.4 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006454/2.876, allocations: 0.7224 MB / 0.9413 GB, free: 190.1 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09135/2.967, allocations: 178.3 MB / 1.115 GB, free: 16.69 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01139/2.979, allocations: 5.295 MB / 1.121 GB, free: 14.95 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007894/2.987, allocations: 3.541 MB / 1.124 GB, free: 12.1 MB / 0.5418 GB Notification: Performance of SimCode: time 2.926e-06/2.987, allocations: 0 / 1.124 GB, free: 12.1 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.566/8.553, allocations: 145.9 MB / 1.267 GB, free: 87.24 MB / 0.5418 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat does not exist to compare? outputFormat=mat