Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",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.001478/0.001478, allocations: 104.6 kB / 17.06 MB, free: 6 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.001593/0.001593, allocations: 196 kB / 18 MB, free: 5.082 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.312/1.312, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001036/0.001036, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2272, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.009857/0.2371, allocations: 10.7 MB / 410.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006505/0.2437, allocations: 3.872 MB / 414.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.2447, allocations: 63.81 kB / 414.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00357/0.2483, allocations: 2.231 MB / 417.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003455/0.2518, allocations: 1.825 MB / 418.9 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00125/0.253, allocations: 0.7097 MB / 419.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004628/0.2577, allocations: 4.238 MB / 423.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003242/0.2609, allocations: 2.907 MB / 426.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002139/0.2631, allocations: 1.472 MB / 428.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002691/0.2658, allocations: 2.087 MB / 430.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007382/0.2665, allocations: 292 kB / 430.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00182/0.2684, allocations: 0.944 MB / 431.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00176/0.2701, allocations: 1.827 MB / 433.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002656/0.2728, allocations: 2.101 MB / 435.5 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006278/0.2791, allocations: 6.438 MB / 441.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2791, allocations: 0 / 441.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2791, allocations: 0 / 441.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001878/0.2793, allocations: 0 / 441.9 MB, free: 14.92 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.008335/0.2877, allocations: 4.638 MB / 446.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2877, allocations: 8.031 kB / 446.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008396/0.2886, allocations: 0.6912 MB / 447.3 MB, free: 9.504 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00689/0.2955, allocations: 1.945 MB / 449.2 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005352/0.3008, allocations: 2.893 MB / 452.1 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.301, allocations: 229.6 kB / 452.3 MB, free: 4.367 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005213/0.3015, allocations: 291.8 kB / 452.6 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/0.3144, allocations: 9.639 MB / 462.3 MB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-05/0.3146, allocations: 47.59 kB / 462.3 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003296/0.3149, allocations: 147.8 kB / 462.5 MB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002544/0.3175, allocations: 1.919 MB / 464.4 MB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01296/0.3304, allocations: 7.629 MB / 472 MB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03674/0.3672, allocations: 37.6 MB / 0.4977 GB, free: 9.145 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01029/0.3775, allocations: 2.887 MB / 0.5005 GB, free: 6.113 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002088/0.3797, allocations: 0.8727 MB / 0.5013 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0073/0.387, allocations: 3.755 MB / 0.505 GB, free: 1.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.387, allocations: 47.16 kB / 0.505 GB, free: 1.211 MB / 430.1 MB Notification: Performance of pre-optimization done (n=134): time 3.386e-06/0.3871, allocations: 4 kB / 0.505 GB, free: 1.207 MB / 430.1 MB Notification: Performance of matching and sorting (n=152): time 0.0229/0.41, allocations: 9.033 MB / 0.5139 GB, free: 8.051 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.41, allocations: 145.5 kB / 0.514 GB, free: 7.879 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00432/0.4144, allocations: 3.933 MB / 0.5178 GB, free: 3.965 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.4145, allocations: 49.7 kB / 0.5179 GB, free: 3.91 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001661/0.4162, allocations: 3.086 MB / 0.5209 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004234/0.4166, allocations: 0.6057 MB / 0.5215 GB, free: 172 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001156/0.4178, allocations: 1.159 MB / 0.5226 GB, free: 15 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.513e-05/0.4179, allocations: 305.1 kB / 0.5229 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002101/0.42, allocations: 1.561 MB / 0.5244 GB, free: 13.13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003982/0.424, allocations: 5.342 MB / 0.5297 GB, free: 5.891 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1825/0.6065, allocations: 7.518 MB / 0.537 GB, free: 123.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001047/0.6067, allocations: 38.38 kB / 0.537 GB, free: 123.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.008886/0.6155, allocations: 6.61 MB / 0.5435 GB, free: 121.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.613e-05/0.6156, allocations: 61.22 kB / 0.5436 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.243e-05/0.6157, allocations: 135.4 kB / 0.5437 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001156/0.6158, allocations: 177.6 kB / 0.5439 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00331/0.6192, allocations: 1.378 MB / 0.5452 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001317/0.6193, allocations: 260.6 kB / 0.5454 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003037/0.6224, allocations: 288.2 kB / 0.5457 GB, free: 121.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003172/0.6227, allocations: 360.9 kB / 0.5461 GB, free: 121.1 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (738): * Single equations (assignments): 735 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001942/0.6246, allocations: 1.984 MB / 0.548 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003706/0.625, allocations: 332.7 kB / 0.5483 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00154/0.6266, allocations: 1.243 MB / 0.5495 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/0.6266, allocations: 15.84 kB / 0.5496 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.6266, allocations: 8.109 kB / 0.5496 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.6266, allocations: 10.39 kB / 0.5496 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006758/0.6334, allocations: 5.744 MB / 0.5552 GB, free: 115.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/0.6334, allocations: 20 kB / 0.5552 GB, free: 115.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008396/0.6343, allocations: 279.4 kB / 0.5555 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.66e-05/0.6343, allocations: 33.52 kB / 0.5555 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-05/0.6344, allocations: 44 kB / 0.5555 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.02e-05/0.6344, allocations: 39.86 kB / 0.5556 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.155e-05/0.6344, allocations: 27.88 kB / 0.5556 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002636/0.6371, allocations: 3.223 MB / 0.5587 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00063/0.6377, allocations: 406.2 kB / 0.5591 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002699/0.638, allocations: 56.86 kB / 0.5592 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000986/0.639, allocations: 62.78 kB / 0.5593 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.6391, allocations: 148.8 kB / 0.5594 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-05/0.6392, allocations: 70.19 kB / 0.5595 GB, free: 111.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002632/0.6418, allocations: 2.442 MB / 0.5618 GB, free: 109.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6418, allocations: 0 / 0.5618 GB, free: 109.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003618/0.6455, allocations: 0.8546 MB / 0.5627 GB, free: 108.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002798/0.6483, allocations: 3.891 MB / 0.5665 GB, free: 104.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004138/0.6524, allocations: 3.673 MB / 0.5701 GB, free: 100.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.6525, allocations: 4 kB / 0.5701 GB, free: 100.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006929/0.6532, allocations: 0.7263 MB / 0.5708 GB, free: 100.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/0.6554, allocations: 460.7 kB / 0.5712 GB, free: 99.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03457/0.69, allocations: 40.2 MB / 0.6105 GB, free: 53.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002248/0.6922, allocations: 3.106 MB / 0.6135 GB, free: 50.12 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003046/0.6953, allocations: 1.761 MB / 0.6152 GB, free: 48.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001449/0.6968, allocations: 1.792 MB / 0.617 GB, free: 46.56 MB / 462.1 MB Notification: Performance of SimCode: time 1.001e-06/0.6968, allocations: 0 / 0.617 GB, free: 46.56 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.522/2.218, allocations: 56.89 MB / 0.6725 GB, free: 6.109 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.41/20.63, allocations: 7.984 kB / 0.6725 GB, free: 6.102 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches