Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.SpringDamperSeries.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.SpringDamperSeries,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_SpringDamperSeries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.SpringDamperSeries,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_SpringDamperSeries",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001193, allocations: 104.1 kB / 16.27 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 191.8 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.511/1.511, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2/0.2, allocations: 43.51 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 71.48 kB / 382.8 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1239, allocations: 57.78 MB / 440.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.SpringDamperSeries): time 0.01036/0.1343, allocations: 10.55 MB / 451.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007766/0.1421, allocations: 3.264 MB / 454.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001897/0.1441, allocations: 55.81 kB / 454.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004469/0.1486, allocations: 2.355 MB / 456.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00353/0.1522, allocations: 1.217 MB / 458.1 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001402/0.1536, allocations: 0.5146 MB / 458.6 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003877/0.1575, allocations: 2.971 MB / 461.5 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003483/0.161, allocations: 3.033 MB / 464.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00193/0.1629, allocations: 1.281 MB / 465.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002861/0.1658, allocations: 1.732 MB / 467.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000949/0.1668, allocations: 296 kB / 467.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002218/0.169, allocations: 0.9792 MB / 468.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001878/0.1709, allocations: 1.609 MB / 470.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003435/0.1744, allocations: 1.977 MB / 472.4 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007271/0.1816, allocations: 6.043 MB / 478.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.17e-05/0.1817, allocations: 4 kB / 478.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1817, allocations: 0 / 478.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002402/0.182, allocations: 0 / 478.5 MB, free: 0.7617 MB / 350.1 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.009717/0.1917, allocations: 4.253 MB / 482.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.1918, allocations: 11.89 kB / 482.8 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001038/0.1928, allocations: 0.6991 MB / 483.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005859/0.1987, allocations: 1.809 MB / 485.3 MB, free: 9.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003238/0.2019, allocations: 1.754 MB / 487 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.2021, allocations: 225.8 kB / 487.2 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005388/0.2027, allocations: 303.8 kB / 487.5 MB, free: 7.578 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02017/0.2229, allocations: 10.63 MB / 498.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.766e-05/0.223, allocations: 31.66 kB / 498.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004071/0.2234, allocations: 143.9 kB / 498.3 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003538/0.227, allocations: 2.052 MB / 0.4887 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02045/0.2474, allocations: 9.317 MB / 0.4978 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2752/0.5227, allocations: 38.01 MB / 0.5349 GB, free: 63.53 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01164/0.5344, allocations: 4.162 MB / 0.5389 GB, free: 62.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003779/0.5382, allocations: 2.308 MB / 0.5412 GB, free: 62.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009759/0.5481, allocations: 6.027 MB / 0.5471 GB, free: 60.54 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/0.5481, allocations: 50.78 kB / 0.5471 GB, free: 60.49 MB / 414.1 MB Notification: Performance of pre-optimization done (n=181): time 5.43e-06/0.5482, allocations: 0 / 0.5471 GB, free: 60.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=210): time 0.05996/0.6081, allocations: 21.95 MB / 0.5686 GB, free: 49.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/0.6082, allocations: 149.4 kB / 0.5687 GB, free: 49.03 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003727/0.612, allocations: 3.393 MB / 0.572 GB, free: 45.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002847/0.6123, allocations: 57.7 kB / 0.5721 GB, free: 45.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.6134, allocations: 2.802 MB / 0.5748 GB, free: 42.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006068/0.614, allocations: 0.789 MB / 0.5756 GB, free: 41.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.6153, allocations: 1.198 MB / 0.5768 GB, free: 40.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.121e-05/0.6153, allocations: 301.1 kB / 0.577 GB, free: 40.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002617/0.6179, allocations: 2.331 MB / 0.5793 GB, free: 38.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003899/0.6219, allocations: 5.782 MB / 0.585 GB, free: 30.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007718/0.6296, allocations: 8.803 MB / 0.5936 GB, free: 20.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-05/0.6297, allocations: 36 kB / 0.5936 GB, free: 20.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01352/0.6432, allocations: 8.676 MB / 0.6021 GB, free: 11.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.235e-05/0.6433, allocations: 63.98 kB / 0.6021 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001048/0.6434, allocations: 123.9 kB / 0.6022 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002494/0.6459, allocations: 1.047 MB / 0.6033 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004287/0.6502, allocations: 1.372 MB / 0.6046 GB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005002/0.6553, allocations: 5.826 MB / 0.6103 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005147/0.6604, allocations: 323.6 kB / 0.6106 GB, free: 2.637 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007838/0.6612, allocations: 364 kB / 0.611 GB, free: 2.281 MB / 414.1 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 (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003134/0.6644, allocations: 1.944 MB / 0.6129 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005903/0.665, allocations: 311.9 kB / 0.6132 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007359/0.6724, allocations: 3.949 MB / 0.617 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.804e-05/0.6724, allocations: 20 kB / 0.617 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.6724, allocations: 4 kB / 0.617 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.627e-05/0.6725, allocations: 16.56 kB / 0.617 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/0.6882, allocations: 8.891 MB / 0.6257 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.6883, allocations: 0 / 0.6257 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001724/0.69, allocations: 359.4 kB / 0.6261 GB, free: 2.715 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002531/0.6926, allocations: 0.8696 MB / 0.6269 GB, free: 1.832 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001896/0.6928, allocations: 32 kB / 0.627 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005016/0.6978, allocations: 5.089 MB / 0.6319 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.6978, allocations: 7.969 kB / 0.6319 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01067/0.7085, allocations: 6.861 MB / 0.6386 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/0.7103, allocations: 0.6842 MB / 0.6393 GB, free: 4.836 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004694/0.7108, allocations: 32 kB / 0.6393 GB, free: 4.805 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.7122, allocations: 115.8 kB / 0.6394 GB, free: 4.691 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00034/0.7125, allocations: 129 kB / 0.6396 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.7127, allocations: 56 kB / 0.6396 GB, free: 4.512 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003502/0.7162, allocations: 2.081 MB / 0.6416 GB, free: 2.438 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7162, allocations: 0 / 0.6416 GB, free: 2.438 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005027/0.7213, allocations: 0.9713 MB / 0.6426 GB, free: 1.473 MB / 446.1 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 (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(3,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01096/0.7322, allocations: 7.519 MB / 0.6499 GB, free: 9.918 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01467/0.7469, allocations: 7.842 MB / 0.6576 GB, free: 2.055 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.747, allocations: 0 / 0.6576 GB, free: 2.055 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004403/0.7514, allocations: 2.464 MB / 0.66 GB, free: 15.53 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/0.7537, allocations: 353 kB / 0.6603 GB, free: 15.18 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07636/0.83, allocations: 48.43 MB / 0.7076 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004054/0.8341, allocations: 3.022 MB / 0.7106 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004712/0.8389, allocations: 1.865 MB / 0.7124 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002669/0.8416, allocations: 1.714 MB / 0.7141 GB, free: 1.09 MB / 0.5137 GB Notification: Performance of SimCode: time 9.02e-07/0.8416, allocations: 3.938 kB / 0.7141 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3211/1.163, allocations: 67.89 MB / 0.7804 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/12.6, allocations: 5.781 kB / 0.7804 GB, free: 168.5 MB / 0.5294 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.SpringDamperSeries.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_SpringDamperSeries.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/SpringDamperSeries/SpringDamperSeries.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.SpringDamperSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches