Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.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.Damper2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Damper2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Damper2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 200.3 kB / 16.1 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 226.5 MB / 243.4 MB, free: 8.098 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008087/0.0008086, allocations: 106.9 kB / 295.5 MB, free: 6.855 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3309/0.3309, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002738/0.0002738, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2605, allocations: 62.97 MB / 0.516 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Damper2): time 0.0597/0.3202, allocations: 78.43 MB / 0.5926 GB, free: 9.957 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.03688/0.3572, allocations: 15.86 MB / 0.6081 GB, free: 10.88 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0144/0.3716, allocations: 363.2 kB / 0.6084 GB, free: 10.52 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01262/0.3843, allocations: 4.148 MB / 0.6125 GB, free: 6.352 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03158/0.4159, allocations: 11.98 MB / 0.6242 GB, free: 10.32 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006802/0.4227, allocations: 1.127 MB / 0.6253 GB, free: 9.195 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.434, allocations: 8.022 MB / 0.6331 GB, free: 1.16 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01543/0.4495, allocations: 8.951 MB / 0.6418 GB, free: 8.109 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004283/0.4539, allocations: 2.051 MB / 0.6438 GB, free: 6.051 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005204/0.4591, allocations: 3.349 MB / 0.6471 GB, free: 2.691 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001723/0.4608, allocations: 256 kB / 0.6473 GB, free: 2.441 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003189/0.4641, allocations: 0.9868 MB / 0.6483 GB, free: 1.453 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004154/0.4682, allocations: 2.883 MB / 0.6511 GB, free: 14.56 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005238/0.4735, allocations: 3.159 MB / 0.6542 GB, free: 11.38 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01031/0.4838, allocations: 8.81 MB / 0.6628 GB, free: 2.547 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.4839, allocations: 8 kB / 0.6628 GB, free: 2.539 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4839, allocations: 0 / 0.6628 GB, free: 2.539 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004161/0.4843, allocations: 0 / 0.6628 GB, free: 2.539 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: 2609 * Number of variables: 2609 Notification: Performance of Generate backend data structure: time 0.01298/0.4973, allocations: 6.429 MB / 0.6691 GB, free: 12.02 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.4974, allocations: 8.031 kB / 0.6691 GB, free: 12.01 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003338/0.5007, allocations: 1.22 MB / 0.6703 GB, free: 10.78 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01064/0.5114, allocations: 2.752 MB / 0.673 GB, free: 8.016 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008289/0.5197, allocations: 4.271 MB / 0.6772 GB, free: 3.684 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003383/0.5201, allocations: 443.2 kB / 0.6776 GB, free: 3.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001463/0.5216, allocations: 0.5621 MB / 0.6781 GB, free: 2.688 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4142/0.9358, allocations: 20.33 MB / 0.698 GB, free: 123 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001773/0.936, allocations: 76.39 kB / 0.6981 GB, free: 123 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007071/0.9367, allocations: 274.3 kB / 0.6983 GB, free: 122.8 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005252/0.942, allocations: 3.335 MB / 0.7016 GB, free: 122.2 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03578/0.9778, allocations: 16.34 MB / 0.7175 GB, free: 116.9 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05788/1.036, allocations: 65.41 MB / 0.7814 GB, free: 52.25 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01465/1.05, allocations: 6.398 MB / 0.7877 GB, free: 45.71 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002553/1.053, allocations: 2.098 MB / 0.7897 GB, free: 43.61 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01135/1.064, allocations: 9.157 MB / 0.7986 GB, free: 34.21 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01211/1.077, allocations: 4.185 MB / 0.8027 GB, free: 29.99 MB / 490.8 MB Notification: Performance of pre-optimization done (n=260): time 5.57e-06/1.077, allocations: 0 / 0.8027 GB, free: 29.99 MB / 490.8 MB Notification: Performance of matching and sorting (n=294): time 0.04658/1.123, allocations: 21.63 MB / 0.8239 GB, free: 8.293 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/1.123, allocations: 158.5 kB / 0.824 GB, free: 8.109 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005776/1.129, allocations: 5.856 MB / 0.8297 GB, free: 2.23 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002349/1.129, allocations: 73.7 kB / 0.8298 GB, free: 2.152 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00315/1.132, allocations: 5.065 MB / 0.8347 GB, free: 13.06 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009786/1.133, allocations: 1.134 MB / 0.8358 GB, free: 11.91 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/1.134, allocations: 184 kB / 0.836 GB, free: 11.73 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0004493/1.134, allocations: 0.6908 MB / 0.8367 GB, free: 11.04 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00406/1.138, allocations: 2.61 MB / 0.8392 GB, free: 8.418 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007076/1.145, allocations: 8.228 MB / 0.8473 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01269/1.158, allocations: 11.84 MB / 0.8588 GB, free: 14.77 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001206/1.158, allocations: 64 kB / 0.8589 GB, free: 14.71 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1209) (initialization): time 0.01889/1.177, allocations: 10.56 MB / 0.8692 GB, free: 4.133 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/1.177, allocations: 123.5 kB / 0.8693 GB, free: 4.008 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001938/1.177, allocations: 196.8 kB / 0.8695 GB, free: 3.816 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002216/1.178, allocations: 264 kB / 0.8698 GB, free: 3.559 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006653/1.184, allocations: 2.215 MB / 0.8719 GB, free: 1.34 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002828/1.185, allocations: 394.5 kB / 0.8723 GB, free: 0.9531 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005493/1.19, allocations: 467.4 kB / 0.8728 GB, free: 0.4961 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001168/1.191, allocations: 0.5469 MB / 0.8733 GB, free: 15.95 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 904 * Number of states: 0 () * Number of discrete variables: 83 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,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 (1184): * Single equations (assignments): 1180 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005704/1.197, allocations: 3.237 MB / 0.8765 GB, free: 12.7 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009129/1.198, allocations: 0.5246 MB / 0.877 GB, free: 12.17 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005396/1.203, allocations: 3.054 MB / 0.88 GB, free: 9.098 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.854e-05/1.203, allocations: 28 kB / 0.88 GB, free: 9.07 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/1.204, allocations: 4 kB / 0.88 GB, free: 9.066 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.821e-05/1.204, allocations: 11.95 kB / 0.88 GB, free: 9.055 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2257/1.429, allocations: 12.48 MB / 0.8922 GB, free: 167 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.338e-05/1.429, allocations: 36.31 kB / 0.8922 GB, free: 167 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/1.431, allocations: 0.6015 MB / 0.8928 GB, free: 166.9 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-05/1.431, allocations: 45.84 kB / 0.8928 GB, free: 166.9 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000166/1.432, allocations: 90.75 kB / 0.8929 GB, free: 166.9 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-05/1.432, allocations: 66.67 kB / 0.893 GB, free: 166.9 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.198e-05/1.432, allocations: 47.25 kB / 0.893 GB, free: 166.9 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006033/1.438, allocations: 5.453 MB / 0.8984 GB, free: 164.2 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/1.439, allocations: 0.5949 MB / 0.899 GB, free: 164 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005816/1.44, allocations: 90.97 kB / 0.899 GB, free: 164 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001862/1.442, allocations: 162.2 kB / 0.8992 GB, free: 164 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004344/1.442, allocations: 279.5 kB / 0.8995 GB, free: 163.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/1.442, allocations: 122.3 kB / 0.8996 GB, free: 163.9 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.004876/1.447, allocations: 3.621 MB / 0.9031 GB, free: 162.7 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.8e-07/1.447, allocations: 3.938 kB / 0.9031 GB, free: 162.7 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.006222/1.453, allocations: 1.463 MB / 0.9045 GB, free: 162.5 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 142 * 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 (278): * Single equations (assignments): 273 * 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.00665/1.46, allocations: 6.186 MB / 0.9106 GB, free: 159 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.009723/1.47, allocations: 6.021 MB / 0.9165 GB, free: 157 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.451e-05/1.47, allocations: 4.531 kB / 0.9165 GB, free: 157 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.002699/1.473, allocations: 1.529 MB / 0.918 GB, free: 156.5 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02613/1.499, allocations: 0.7768 MB / 0.9187 GB, free: 156.1 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07819/1.577, allocations: 55.35 MB / 0.9728 GB, free: 112.6 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004866/1.582, allocations: 4.897 MB / 0.9776 GB, free: 108.9 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003096/1.585, allocations: 3.316 MB / 0.9808 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of SimCode: time 6.71e-07/1.585, allocations: 0 / 0.9808 GB, free: 105.8 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.282/10.87, allocations: 111.1 MB / 1.089 GB, free: 12.01 MB / 0.5574 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Damper2_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_Damper2.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.Damper2.pipe 2>&1)