Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Forces_SpringDamperSeries",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.SpringDamperSeries,fileNamePrefix="ModelicaTest_4_0_0_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.001102/0.001102, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001182/0.001183, allocations: 181 kB / 18.71 MB, free: 4.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 242.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1994/0.1994, allocations: 44.19 MB / 336.8 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001559, allocations: 63.91 kB / 470.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.343, allocations: 60.81 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.SpringDamperSeries): time 0.0117/0.3547, allocations: 10.53 MB / 0.5287 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007279/0.362, allocations: 3.199 MB / 0.5318 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002146/0.3642, allocations: 57.09 kB / 0.5319 GB, free: 9.531 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004976/0.3692, allocations: 2.362 MB / 0.5342 GB, free: 7.934 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003996/0.3733, allocations: 1.262 MB / 0.5354 GB, free: 7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001678/0.3749, allocations: 0.5128 MB / 0.5359 GB, free: 6.613 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004693/0.3797, allocations: 2.954 MB / 0.5388 GB, free: 4.949 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004616/0.3843, allocations: 3.019 MB / 0.5418 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002671/0.387, allocations: 1.287 MB / 0.543 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003018/0.39, allocations: 1.732 MB / 0.5447 GB, free: 1.125 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00105/0.3911, allocations: 296 kB / 0.545 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002459/0.3936, allocations: 0.987 MB / 0.546 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001941/0.3955, allocations: 1.601 MB / 0.5475 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003038/0.3986, allocations: 1.98 MB / 0.5495 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006525/0.4051, allocations: 6.309 MB / 0.5556 GB, free: 5.918 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.4051, allocations: 4 kB / 0.5556 GB, free: 5.914 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4051, allocations: 0 / 0.5556 GB, free: 5.914 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.879e-05/0.4052, allocations: 4 kB / 0.5556 GB, free: 5.91 MB / 414.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.00745/0.4127, allocations: 4.359 MB / 0.5599 GB, free: 1.477 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.4128, allocations: 12.03 kB / 0.5599 GB, free: 1.465 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007846/0.4136, allocations: 0.6991 MB / 0.5606 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005732/0.4193, allocations: 1.835 MB / 0.5624 GB, free: 14.91 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003339/0.4227, allocations: 1.774 MB / 0.5641 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.4228, allocations: 225.8 kB / 0.5643 GB, free: 12.87 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004931/0.4233, allocations: 299.8 kB / 0.5646 GB, free: 12.58 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01793/0.4412, allocations: 10.63 MB / 0.575 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001027/0.4414, allocations: 35.7 kB / 0.575 GB, free: 1.285 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003561/0.4418, allocations: 139.9 kB / 0.5752 GB, free: 1.148 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003378/0.4451, allocations: 2.048 MB / 0.5772 GB, free: 15.1 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01829/0.4635, allocations: 9.328 MB / 0.5863 GB, free: 5.746 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0465/0.51, allocations: 37.9 MB / 0.6233 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01081/0.5209, allocations: 4.172 MB / 0.6274 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002804/0.5237, allocations: 2.312 MB / 0.6296 GB, free: 8.152 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009346/0.5331, allocations: 6.03 MB / 0.6355 GB, free: 1.859 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.5331, allocations: 59.8 kB / 0.6356 GB, free: 1.793 MB / 494.1 MB Notification: Performance of pre-optimization done (n=181): time 5.059e-06/0.5332, allocations: 0 / 0.6356 GB, free: 1.793 MB / 494.1 MB Notification: Performance of matching and sorting (n=210): time 0.06356/0.5967, allocations: 22.14 MB / 0.6572 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.036e-05/0.5968, allocations: 149.8 kB / 0.6573 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005124/0.602, allocations: 3.399 MB / 0.6606 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003364/0.6023, allocations: 53.7 kB / 0.6607 GB, free: 7.852 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001967/0.6043, allocations: 2.916 MB / 0.6635 GB, free: 4.906 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009747/0.6053, allocations: 0.8295 MB / 0.6644 GB, free: 4.07 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002121/0.6074, allocations: 1.203 MB / 0.6655 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.92e-05/0.6075, allocations: 301.1 kB / 0.6658 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003474/0.611, allocations: 2.327 MB / 0.6681 GB, free: 232 kB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005656/0.6167, allocations: 5.792 MB / 0.6737 GB, free: 8.715 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01153/0.6282, allocations: 8.793 MB / 0.6823 GB, free: 14.22 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/0.6284, allocations: 32 kB / 0.6824 GB, free: 14.19 MB / 0.545 GB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01494/0.6433, allocations: 8.705 MB / 0.6909 GB, free: 5.473 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.6435, allocations: 56 kB / 0.6909 GB, free: 5.418 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001511/0.6437, allocations: 124.2 kB / 0.691 GB, free: 5.297 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002659/0.6463, allocations: 1.041 MB / 0.692 GB, free: 4.242 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004442/0.6508, allocations: 1.372 MB / 0.6934 GB, free: 2.867 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005673/0.6565, allocations: 5.825 MB / 0.6991 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004128/0.6606, allocations: 319.6 kB / 0.6994 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008747/0.6615, allocations: 360 kB / 0.6997 GB, free: 12.09 MB / 0.5606 GB 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.003458/0.665, allocations: 1.932 MB / 0.7016 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007785/0.6658, allocations: 333.8 kB / 0.7019 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007364/0.6731, allocations: 3.943 MB / 0.7058 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.179e-05/0.6732, allocations: 27.98 kB / 0.7058 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.543e-05/0.6732, allocations: 4 kB / 0.7058 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/0.6733, allocations: 7.969 kB / 0.7058 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01729/0.6906, allocations: 8.815 MB / 0.7144 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-05/0.6906, allocations: 0 / 0.7144 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001816/0.6924, allocations: 351.5 kB / 0.7148 GB, free: 12.55 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002385/0.6949, allocations: 0.8734 MB / 0.7156 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002644/0.6951, allocations: 35.94 kB / 0.7156 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004928/0.7001, allocations: 5.133 MB / 0.7207 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.7001, allocations: 0 / 0.7207 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2571/0.9573, allocations: 6.89 MB / 0.7274 GB, free: 181.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009284/0.9582, allocations: 373.6 kB / 0.7277 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006004/0.9588, allocations: 33.23 kB / 0.7278 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001626/0.9605, allocations: 118.1 kB / 0.7279 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00033/0.9608, allocations: 120.8 kB / 0.728 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001533/0.961, allocations: 56.56 kB / 0.7281 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003493/0.9645, allocations: 2.076 MB / 0.7301 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9645, allocations: 0 / 0.7301 GB, free: 181.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004672/0.9692, allocations: 0.9712 MB / 0.731 GB, free: 181.3 MB / 0.5762 GB 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.009974/0.9791, allocations: 7.548 MB / 0.7384 GB, free: 178 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.009733/0.9889, allocations: 6.147 MB / 0.7444 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.989, allocations: 0 / 0.7444 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00355/0.9925, allocations: 2.48 MB / 0.7468 GB, free: 174.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/0.9945, allocations: 361.2 kB / 0.7472 GB, free: 174.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04493/1.039, allocations: 44.17 MB / 0.7903 GB, free: 134.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002271/1.042, allocations: 3.025 MB / 0.7933 GB, free: 131 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003259/1.045, allocations: 1.861 MB / 0.7951 GB, free: 129.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001739/1.047, allocations: 1.714 MB / 0.7968 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of SimCode: time 9.41e-07/1.047, allocations: 0 / 0.7968 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09332/1.14, allocations: 64.37 MB / 0.8596 GB, free: 63.48 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.46/18.6, allocations: 5.734 kB / 0.8596 GB, free: 63.48 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Forces_SpringDamperSeries.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/SpringDamperSeries/SpringDamperSeries.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.SpringDamperSeries.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches