Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 200.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 226.5 MB / 243.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007476/0.0007475, allocations: 98.12 kB / 295.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2977/0.2977, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002698, allocations: 8 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3023, allocations: 62.98 MB / 0.516 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper): time 0.05539/0.3577, allocations: 78.38 MB / 0.5925 GB, free: 10.01 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0322/0.3899, allocations: 15.81 MB / 0.6079 GB, free: 11 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01349/0.4035, allocations: 367.1 kB / 0.6083 GB, free: 10.64 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01189/0.4154, allocations: 4.144 MB / 0.6123 GB, free: 6.477 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02812/0.4436, allocations: 11.98 MB / 0.624 GB, free: 10.45 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005035/0.4486, allocations: 1.123 MB / 0.6251 GB, free: 9.328 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.008874/0.4575, allocations: 7.978 MB / 0.6329 GB, free: 1.34 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01073/0.4683, allocations: 8.936 MB / 0.6417 GB, free: 8.309 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003238/0.4716, allocations: 2.036 MB / 0.6436 GB, free: 6.266 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004009/0.4756, allocations: 3.338 MB / 0.6469 GB, free: 2.918 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008855/0.4765, allocations: 252 kB / 0.6471 GB, free: 2.672 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00223/0.4787, allocations: 0.9908 MB / 0.6481 GB, free: 1.68 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002435/0.4812, allocations: 2.875 MB / 0.6509 GB, free: 14.8 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003186/0.4844, allocations: 3.139 MB / 0.654 GB, free: 11.63 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00791/0.4923, allocations: 8.791 MB / 0.6626 GB, free: 2.82 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4924, allocations: 0 / 0.6626 GB, free: 2.82 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4924, allocations: 4 kB / 0.6626 GB, free: 2.816 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003187/0.4927, allocations: 0 / 0.6626 GB, free: 2.816 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2607 * Number of variables: 2607 Notification: Performance of Generate backend data structure: time 0.01086/0.5036, allocations: 6.332 MB / 0.6688 GB, free: 12.4 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.5036, allocations: 12.03 kB / 0.6688 GB, free: 12.39 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002267/0.5059, allocations: 1.224 MB / 0.67 GB, free: 11.15 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01009/0.516, allocations: 2.756 MB / 0.6727 GB, free: 8.383 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00765/0.5237, allocations: 4.255 MB / 0.6768 GB, free: 4.066 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003479/0.5241, allocations: 447.2 kB / 0.6772 GB, free: 3.629 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.5255, allocations: 0.566 MB / 0.6778 GB, free: 3.062 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4233/0.9488, allocations: 20.28 MB / 0.6976 GB, free: 123.4 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000225/0.9491, allocations: 70.91 kB / 0.6977 GB, free: 123.4 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009573/0.9501, allocations: 271.7 kB / 0.6979 GB, free: 123.2 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005882/0.956, allocations: 3.335 MB / 0.7012 GB, free: 122.7 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03564/0.9916, allocations: 16.27 MB / 0.7171 GB, free: 117.4 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05823/1.05, allocations: 65.31 MB / 0.7808 GB, free: 52.9 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01414/1.064, allocations: 6.307 MB / 0.787 GB, free: 46.46 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002493/1.067, allocations: 2.053 MB / 0.789 GB, free: 44.4 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01115/1.078, allocations: 9.129 MB / 0.7979 GB, free: 35.03 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.327e-05/1.078, allocations: 64.56 kB / 0.798 GB, free: 34.96 MB / 490.8 MB Notification: Performance of pre-optimization done (n=257): time 4.949e-06/1.078, allocations: 3.938 kB / 0.798 GB, free: 34.96 MB / 490.8 MB Notification: Performance of matching and sorting (n=291): time 0.04785/1.126, allocations: 21.34 MB / 0.8188 GB, free: 13.55 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.639e-05/1.126, allocations: 158.5 kB / 0.819 GB, free: 13.36 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006367/1.132, allocations: 5.831 MB / 0.8247 GB, free: 7.508 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0004031/1.133, allocations: 79.84 kB / 0.8248 GB, free: 7.426 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002091/1.135, allocations: 4.967 MB / 0.8296 GB, free: 2.406 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009237/1.136, allocations: 1.115 MB / 0.8307 GB, free: 1.277 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003301/1.136, allocations: 184 kB / 0.8309 GB, free: 1.098 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003366/1.136, allocations: 0.6907 MB / 0.8315 GB, free: 408 kB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004573/1.141, allocations: 2.567 MB / 0.834 GB, free: 13.82 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007557/1.149, allocations: 8.173 MB / 0.842 GB, free: 2.867 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0132/1.162, allocations: 11.73 MB / 0.8535 GB, free: 4.348 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001426/1.162, allocations: 56 kB / 0.8535 GB, free: 4.293 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.01863/1.181, allocations: 10.44 MB / 0.8637 GB, free: 9.848 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/1.181, allocations: 88 kB / 0.8638 GB, free: 9.762 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002228/1.181, allocations: 200 kB / 0.864 GB, free: 9.566 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002275/1.181, allocations: 260 kB / 0.8643 GB, free: 9.312 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007002/1.188, allocations: 2.203 MB / 0.8664 GB, free: 7.105 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004118/1.189, allocations: 386.5 kB / 0.8668 GB, free: 6.727 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007526/1.196, allocations: 451.4 kB / 0.8672 GB, free: 6.285 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001164/1.197, allocations: 0.5469 MB / 0.8677 GB, free: 5.738 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 78 (force2.forceArrow.arrowLine.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.arrowLine.twoHeadedArrow,force1.forceArrow.headAtOrigin,force.forceArrow.arrowLine.twoHeadedArrow,force.forceArrow.headAtOrigin,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 (1180): * Single equations (assignments): 1177 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005342/1.203, allocations: 3.226 MB / 0.8709 GB, free: 2.5 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008761/1.204, allocations: 0.5206 MB / 0.8714 GB, free: 1.973 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004965/1.209, allocations: 2.956 MB / 0.8743 GB, free: 15 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.965e-05/1.209, allocations: 35.91 kB / 0.8743 GB, free: 14.97 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/1.209, allocations: 0 / 0.8743 GB, free: 14.97 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.433e-05/1.209, allocations: 15.95 kB / 0.8743 GB, free: 14.95 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02054/1.229, allocations: 12.46 MB / 0.8865 GB, free: 1.949 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.815e-05/1.229, allocations: 36 kB / 0.8865 GB, free: 1.914 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/1.231, allocations: 0.5381 MB / 0.8871 GB, free: 1.375 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.991e-05/1.231, allocations: 44.38 kB / 0.8871 GB, free: 1.332 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/1.231, allocations: 95.98 kB / 0.8872 GB, free: 1.238 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.244e-05/1.232, allocations: 67.72 kB / 0.8873 GB, free: 1.172 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.004e-05/1.232, allocations: 47.81 kB / 0.8873 GB, free: 1.125 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.216/1.448, allocations: 5.525 MB / 0.8927 GB, free: 166 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/1.449, allocations: 0.59 MB / 0.8933 GB, free: 165.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005544/1.449, allocations: 90.59 kB / 0.8934 GB, free: 165.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/1.451, allocations: 144 kB / 0.8935 GB, free: 165.8 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003247/1.452, allocations: 274 kB / 0.8938 GB, free: 165.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/1.452, allocations: 116 kB / 0.8939 GB, free: 165.7 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.004616/1.456, allocations: 3.613 MB / 0.8974 GB, free: 164.5 MB / 0.5418 GB Notification: Performance of sort global known variables: time 2.41e-07/1.456, allocations: 0 / 0.8974 GB, free: 164.5 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.006333/1.463, allocations: 1.453 MB / 0.8988 GB, free: 164.3 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 142 * Number of states: 7 (body.frame_a.r_0[1],body.v_0[1],prismatic1.s,prismatic1.v,heatCapacitor.T,prismatic2.s,prismatic2.v) * 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 (275): * Single equations (assignments): 272 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005726/1.468, allocations: 6.245 MB / 0.9049 GB, free: 160.6 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.007779/1.476, allocations: 5.885 MB / 0.9107 GB, free: 158.7 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/1.476, allocations: 5 kB / 0.9107 GB, free: 158.7 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.00173/1.478, allocations: 1.341 MB / 0.912 GB, free: 158.2 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0252/1.503, allocations: 0.7634 MB / 0.9127 GB, free: 157.9 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07415/1.577, allocations: 54.93 MB / 0.9664 GB, free: 117.7 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004797/1.582, allocations: 4.9 MB / 0.9711 GB, free: 114 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003093/1.585, allocations: 3.352 MB / 0.9744 GB, free: 110.9 MB / 0.5418 GB Notification: Performance of SimCode: time 9.72e-07/1.585, allocations: 0 / 0.9744 GB, free: 110.9 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.123/10.71, allocations: 110.6 MB / 1.082 GB, free: 2.324 MB / 0.5418 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Damper_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Damper.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper_res.mat does not exist to compare? outputFormat=mat