Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,fileNamePrefix="Modelica_3_2_3_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.001234/0.001239, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.00144/0.00144, allocations: 191 kB / 18.66 MB, free: 4.441 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.284/1.285, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.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.001291/0.001291, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09561/0.09691, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1878/0.2847, allocations: 10.75 MB / 385.4 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007718/0.2925, allocations: 3.871 MB / 389.3 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.2946, allocations: 71.31 kB / 389.3 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004502/0.2991, allocations: 2.231 MB / 391.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00508/0.3043, allocations: 1.841 MB / 393.4 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.3059, allocations: 0.7152 MB / 394.1 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005593/0.3115, allocations: 4.262 MB / 398.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00287/0.3144, allocations: 2.916 MB / 401.3 MB, free: 180 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.3167, allocations: 1.484 MB / 402.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002677/0.3194, allocations: 2.099 MB / 404.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006329/0.3201, allocations: 293.2 kB / 405.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001803/0.3219, allocations: 0.9359 MB / 406.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00161/0.3235, allocations: 1.836 MB / 407.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001984/0.3255, allocations: 2.12 MB / 410.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006131/0.3317, allocations: 6.449 MB / 416.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3317, allocations: 0 / 416.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3317, allocations: 0 / 416.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001472/0.3318, allocations: 4 kB / 416.5 MB, free: 5.898 MB / 334.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.007224/0.3391, allocations: 4.658 MB / 421.2 MB, free: 1.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3391, allocations: 11.97 kB / 421.2 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007125/0.3398, allocations: 0.6912 MB / 421.9 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006382/0.3462, allocations: 1.949 MB / 423.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005166/0.3514, allocations: 3.191 MB / 427 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.3516, allocations: 221.6 kB / 427.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000511/0.3521, allocations: 295.8 kB / 427.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01541/0.3675, allocations: 9.635 MB / 437.2 MB, free: 352 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001151/0.3677, allocations: 47.53 kB / 437.2 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003908/0.3681, allocations: 147.8 kB / 437.4 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00262/0.3707, allocations: 1.911 MB / 439.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01329/0.384, allocations: 7.637 MB / 446.9 MB, free: 6.578 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03721/0.4213, allocations: 37.62 MB / 484.5 MB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006125/0.4274, allocations: 2.889 MB / 487.4 MB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/0.4287, allocations: 0.873 MB / 488.3 MB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005485/0.4342, allocations: 3.763 MB / 492 MB, free: 7.906 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.4342, allocations: 43.22 kB / 492.1 MB, free: 7.852 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.236e-06/0.4342, allocations: 0 / 492.1 MB, free: 7.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02016/0.4544, allocations: 9.147 MB / 0.4895 GB, free: 14.58 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.4545, allocations: 141.5 kB / 0.4896 GB, free: 14.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00486/0.4593, allocations: 3.966 MB / 0.4935 GB, free: 10.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001455/0.4595, allocations: 45.7 kB / 0.4935 GB, free: 10.36 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001896/0.4614, allocations: 3.093 MB / 0.4966 GB, free: 7.223 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005132/0.4619, allocations: 0.6096 MB / 0.4972 GB, free: 6.605 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001177/0.4631, allocations: 1.159 MB / 0.4983 GB, free: 5.434 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.655e-05/0.4632, allocations: 309.1 kB / 0.4986 GB, free: 5.129 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002113/0.4653, allocations: 1.561 MB / 0.5001 GB, free: 3.562 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004382/0.4697, allocations: 5.334 MB / 0.5053 GB, free: 12.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007457/0.4772, allocations: 7.522 MB / 0.5127 GB, free: 2.926 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.047e-05/0.4773, allocations: 40 kB / 0.5127 GB, free: 2.887 MB / 446.1 MB Notification: Performance of matching and sorting (n=762) (initialization): time 0.009693/0.487, allocations: 6.614 MB / 0.5192 GB, free: 12.27 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.7e-05/0.4871, allocations: 60.19 kB / 0.5192 GB, free: 12.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000149/0.4873, allocations: 140.2 kB / 0.5193 GB, free: 12.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/0.4874, allocations: 179.9 kB / 0.5195 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003694/0.4911, allocations: 1.372 MB / 0.5209 GB, free: 10.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001902/0.4913, allocations: 263 kB / 0.5211 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003245/0.4946, allocations: 279.6 kB / 0.5214 GB, free: 9.988 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004485/0.4951, allocations: 364 kB / 0.5217 GB, free: 9.633 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.00296/0.498, allocations: 1.986 MB / 0.5237 GB, free: 7.633 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005794/0.4986, allocations: 339.6 kB / 0.524 GB, free: 7.297 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/0.5009, allocations: 1.254 MB / 0.5252 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.56e-05/0.501, allocations: 16 kB / 0.5252 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.501, allocations: 0 / 0.5252 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.501, allocations: 8.047 kB / 0.5252 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008926/0.5099, allocations: 5.753 MB / 0.5309 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.028e-05/0.51, allocations: 20 kB / 0.5309 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009364/0.5109, allocations: 279.6 kB / 0.5311 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.572e-05/0.511, allocations: 28 kB / 0.5312 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.194e-05/0.5111, allocations: 55.92 kB / 0.5312 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.641e-05/0.5111, allocations: 39.86 kB / 0.5313 GB, free: 15.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.695e-05/0.5111, allocations: 27.88 kB / 0.5313 GB, free: 15.47 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0035/0.5146, allocations: 3.216 MB / 0.5344 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000908/0.5155, allocations: 0.5121 MB / 0.5349 GB, free: 11.46 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003125/0.5159, allocations: 47.98 kB / 0.535 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.5169, allocations: 59.95 kB / 0.535 GB, free: 11.36 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.5171, allocations: 151.4 kB / 0.5352 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.209e-05/0.5172, allocations: 64 kB / 0.5352 GB, free: 11.14 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003499/0.5207, allocations: 2.467 MB / 0.5376 GB, free: 8.664 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5207, allocations: 0 / 0.5376 GB, free: 8.664 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004188/0.5249, allocations: 0.8594 MB / 0.5385 GB, free: 7.805 MB / 478.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.00391/0.5288, allocations: 3.905 MB / 0.5423 GB, free: 3.625 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1784/0.7072, allocations: 3.67 MB / 0.5459 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.527e-05/0.7073, allocations: 2.969 kB / 0.5459 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001423/0.7087, allocations: 0.7267 MB / 0.5466 GB, free: 151.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003985/0.7127, allocations: 453.2 kB / 0.547 GB, free: 151.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05033/0.7631, allocations: 40.38 MB / 0.5865 GB, free: 123.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00279/0.766, allocations: 3.11 MB / 0.5895 GB, free: 122.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003242/0.7692, allocations: 1.771 MB / 0.5912 GB, free: 121.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001638/0.7709, allocations: 1.796 MB / 0.593 GB, free: 119.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.302e-06/0.7709, allocations: 0 / 0.593 GB, free: 119.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1297/0.9006, allocations: 57.13 MB / 0.6488 GB, free: 62.17 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.06/17.96, allocations: 8.703 kB / 0.6488 GB, free: 62.16 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches