Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.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.SpringDamperSeries,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_SpringDamperSeries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.SpringDamperSeries,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_SpringDamperSeries",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001151/0.001151, allocations: 199.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.201/1.201, allocations: 226.5 MB / 243.4 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007046/0.0007049, allocations: 95.59 kB / 295.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.276/0.276, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002377/0.0002378, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2634, allocations: 62.96 MB / 0.516 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.SpringDamperSeries): time 0.02298/0.2864, allocations: 34.85 MB / 0.55 GB, free: 12.22 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01455/0.301, allocations: 7.488 MB / 0.5573 GB, free: 7.078 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006082/0.3071, allocations: 158 kB / 0.5575 GB, free: 7.055 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005339/0.3125, allocations: 1.789 MB / 0.5592 GB, free: 6.41 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01537/0.3279, allocations: 4.977 MB / 0.5641 GB, free: 4.285 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003009/0.3309, allocations: 448.7 kB / 0.5645 GB, free: 4.078 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005104/0.336, allocations: 3.506 MB / 0.5679 GB, free: 2.352 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006202/0.3423, allocations: 4.03 MB / 0.5718 GB, free: 15.98 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002498/0.3448, allocations: 0.9916 MB / 0.5728 GB, free: 15 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002676/0.3475, allocations: 1.561 MB / 0.5743 GB, free: 13.44 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008093/0.3484, allocations: 128 kB / 0.5745 GB, free: 13.31 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002345/0.3507, allocations: 0.9009 MB / 0.5753 GB, free: 12.41 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00185/0.3526, allocations: 1.387 MB / 0.5767 GB, free: 11.02 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002616/0.3552, allocations: 1.687 MB / 0.5783 GB, free: 9.316 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00509/0.3603, allocations: 4.791 MB / 0.583 GB, free: 4.516 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.3604, allocations: 0 / 0.583 GB, free: 4.516 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3604, allocations: 0 / 0.583 GB, free: 4.516 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002101/0.3606, allocations: 0 / 0.583 GB, free: 4.516 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: 1473 * Number of variables: 1473 Notification: Performance of Generate backend data structure: time 0.006739/0.3674, allocations: 3.477 MB / 0.5864 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3674, allocations: 8.031 kB / 0.5864 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001202/0.3686, allocations: 0.6991 MB / 0.5871 GB, free: 260 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005798/0.3744, allocations: 1.86 MB / 0.5889 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003152/0.3776, allocations: 1.758 MB / 0.5906 GB, free: 12.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/0.3778, allocations: 225.8 kB / 0.5909 GB, free: 12.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005255/0.3783, allocations: 295.9 kB / 0.5911 GB, free: 12.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01794/0.3963, allocations: 10.61 MB / 0.6015 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.5e-05/0.3964, allocations: 35.69 kB / 0.6015 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000362/0.3968, allocations: 147.8 kB / 0.6017 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003174/0.4, allocations: 2.04 MB / 0.6037 GB, free: 14.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01729/0.4173, allocations: 9.285 MB / 0.6127 GB, free: 5.293 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04085/0.4582, allocations: 38.03 MB / 0.6499 GB, free: 14.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01015/0.4683, allocations: 4.182 MB / 0.654 GB, free: 9.914 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00294/0.4713, allocations: 2.3 MB / 0.6562 GB, free: 7.602 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008507/0.4799, allocations: 6.028 MB / 0.6621 GB, free: 1.312 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.4799, allocations: 59.86 kB / 0.6621 GB, free: 1.246 MB / 474.7 MB Notification: Performance of pre-optimization done (n=181): time 4.739e-06/0.48, allocations: 0 / 0.6621 GB, free: 1.246 MB / 474.7 MB Notification: Performance of matching and sorting (n=210): time 0.2612/0.7411, allocations: 21.92 MB / 0.6835 GB, free: 129.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.222e-05/0.7412, allocations: 146.6 kB / 0.6837 GB, free: 129.1 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004989/0.7462, allocations: 3.363 MB / 0.687 GB, free: 127.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003665/0.7466, allocations: 55.36 kB / 0.687 GB, free: 127.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001316/0.7479, allocations: 2.798 MB / 0.6898 GB, free: 125.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007143/0.7487, allocations: 0.7925 MB / 0.6905 GB, free: 125.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/0.7489, allocations: 121.2 kB / 0.6906 GB, free: 125 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002226/0.7492, allocations: 0.5538 MB / 0.6912 GB, free: 124.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002756/0.7519, allocations: 2.306 MB / 0.6934 GB, free: 123.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003849/0.7558, allocations: 5.765 MB / 0.6991 GB, free: 118.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007883/0.7637, allocations: 8.771 MB / 0.7076 GB, free: 111.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001276/0.7638, allocations: 34.69 kB / 0.7077 GB, free: 111.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01656/0.7804, allocations: 8.63 MB / 0.7161 GB, free: 107.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001817/0.7806, allocations: 61 kB / 0.7162 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000274/0.7809, allocations: 120.5 kB / 0.7163 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003068/0.784, allocations: 1.041 MB / 0.7173 GB, free: 107.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005169/0.7892, allocations: 1.376 MB / 0.7186 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005395/0.7946, allocations: 5.402 MB / 0.7239 GB, free: 103.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004584/0.7992, allocations: 327.8 kB / 0.7242 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001134/0.8004, allocations: 361.4 kB / 0.7246 GB, free: 103.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 553 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],s1.color[3],s1.color[2],s1.color[1],s1.massColor[3],s1.massColor[2],s1.massColor[1],sps1.color[3],sps1.color[2],sps1.color[1],sps1.color_b[3],sps1.color_b[2],sps1.color_b[1],sps1.color_a[3],sps1.color_a[2],sps1.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 (734): * Single equations (assignments): 727 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00413/0.8045, allocations: 1.944 MB / 0.7265 GB, free: 102.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000802/0.8054, allocations: 306.7 kB / 0.7268 GB, free: 102.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006683/0.812, allocations: 3.937 MB / 0.7306 GB, free: 100.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.301e-05/0.8121, allocations: 28.7 kB / 0.7306 GB, free: 100.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/0.8121, allocations: 3.938 kB / 0.7306 GB, free: 100.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/0.8122, allocations: 19.59 kB / 0.7306 GB, free: 100.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01394/0.8261, allocations: 8.871 MB / 0.7393 GB, free: 96.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/0.8262, allocations: 3.938 kB / 0.7393 GB, free: 96.01 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001693/0.8279, allocations: 344.2 kB / 0.7396 GB, free: 95.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002211/0.8301, allocations: 0.8693 MB / 0.7405 GB, free: 95.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002404/0.8304, allocations: 33.97 kB / 0.7405 GB, free: 95.07 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003664/0.834, allocations: 4.759 MB / 0.7452 GB, free: 90.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.8341, allocations: 3.984 kB / 0.7452 GB, free: 90.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008647/0.8427, allocations: 6.853 MB / 0.7519 GB, free: 83.56 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000865/0.8436, allocations: 364.9 kB / 0.7522 GB, free: 83.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006866/0.8443, allocations: 36 kB / 0.7522 GB, free: 83.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/0.8461, allocations: 116.9 kB / 0.7524 GB, free: 83.03 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004545/0.8465, allocations: 117.1 kB / 0.7525 GB, free: 82.92 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/0.8467, allocations: 60.11 kB / 0.7525 GB, free: 82.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002863/0.8496, allocations: 2.061 MB / 0.7545 GB, free: 80.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.8496, allocations: 0 / 0.7545 GB, free: 80.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004839/0.8544, allocations: 0.9654 MB / 0.7555 GB, free: 79.84 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (sps1.s_damper,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b,prismatic1.s,prismatic1.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 (178): * Single equations (assignments): 171 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009007/0.8635, allocations: 7.51 MB / 0.7628 GB, free: 72.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008538/0.872, allocations: 6.09 MB / 0.7688 GB, free: 66.17 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.8721, allocations: 0 / 0.7688 GB, free: 66.17 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003575/0.8757, allocations: 2.459 MB / 0.7712 GB, free: 63.64 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002842/0.8785, allocations: 334.2 kB / 0.7715 GB, free: 63.31 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04782/0.9264, allocations: 32.7 MB / 0.8034 GB, free: 27.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003163/0.9296, allocations: 3.026 MB / 0.8064 GB, free: 24.34 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002245/0.9318, allocations: 1.761 MB / 0.8081 GB, free: 22.58 MB / 490.7 MB Notification: Performance of SimCode: time 7.52e-07/0.9319, allocations: 0 / 0.8081 GB, free: 22.58 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.659/8.591, allocations: 136.1 MB / 0.941 GB, free: 127.6 MB / 0.5261 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_SpringDamperSeries_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_SpringDamperSeries.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/SpringDamperSeries/SpringDamperSeries.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.SpringDamperSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches