Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",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.0008151/0.0008151, allocations: 91.7 kB / 16.65 MB, free: 6.598 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.0008954/0.0008953, allocations: 179.3 kB / 17.56 MB, free: 6.199 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.354/1.354, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002481/0.0002482, allocations: 8 kB / 301.5 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1005, allocations: 50.41 MB / 351.9 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.2166/0.3171, allocations: 33.68 MB / 385.6 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0171/0.3343, allocations: 7.827 MB / 393.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007369/0.3417, allocations: 146.6 kB / 393.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001535/0.3432, allocations: 368.7 kB / 394 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004558/0.3478, allocations: 1.559 MB / 395.5 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.3492, allocations: 0.5638 MB / 396.1 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005776/0.355, allocations: 4.732 MB / 400.8 MB, free: 456 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00461/0.3596, allocations: 3.279 MB / 404.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001721/0.3614, allocations: 0.9483 MB / 405 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001995/0.3634, allocations: 1.612 MB / 406.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003279/0.3637, allocations: 112.5 kB / 406.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001874/0.3656, allocations: 0.9585 MB / 407.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.3669, allocations: 1.429 MB / 409.2 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001425/0.3683, allocations: 1.678 MB / 410.8 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005032/0.3734, allocations: 5.43 MB / 416.3 MB, free: 3.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.3734, allocations: 0 / 416.3 MB, free: 3.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3734, allocations: 4 kB / 416.3 MB, free: 3.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001232/0.3735, allocations: 0 / 416.3 MB, free: 3.773 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.00599/0.3795, allocations: 3.316 MB / 419.6 MB, free: 400 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.3796, allocations: 8.031 kB / 419.6 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007575/0.3804, allocations: 0.6082 MB / 420.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006209/0.3866, allocations: 1.829 MB / 422 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003677/0.3903, allocations: 2.228 MB / 424.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.3904, allocations: 192.8 kB / 424.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004432/0.3909, allocations: 259.8 kB / 424.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01234/0.4032, allocations: 8.439 MB / 433.1 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-05/0.4033, allocations: 43.66 kB / 433.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003311/0.4037, allocations: 123.9 kB / 433.3 MB, free: 1.926 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002687/0.4064, allocations: 1.699 MB / 435 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01268/0.4191, allocations: 7.102 MB / 442.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04055/0.4597, allocations: 34.15 MB / 476.3 MB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007711/0.4674, allocations: 3.272 MB / 479.5 MB, free: 2.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002045/0.4695, allocations: 1.473 MB / 481 MB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006706/0.4762, allocations: 4.354 MB / 485.3 MB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.4763, allocations: 51 kB / 485.4 MB, free: 12.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 4.468e-06/0.4763, allocations: 0 / 485.4 MB, free: 12.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03022/0.5066, allocations: 11.49 MB / 496.9 MB, free: 0.7891 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.287e-05/0.5067, allocations: 145.1 kB / 497 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006037/0.5127, allocations: 3.722 MB / 0.489 GB, free: 12.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000173/0.5129, allocations: 49.69 kB / 0.4891 GB, free: 12.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002039/0.515, allocations: 2.744 MB / 0.4917 GB, free: 10.06 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000618/0.5156, allocations: 0.5171 MB / 0.4923 GB, free: 9.539 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007185/0.5163, allocations: 461.6 kB / 0.4927 GB, free: 9.082 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.5164, allocations: 305.1 kB / 0.493 GB, free: 8.781 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002685/0.5191, allocations: 1.697 MB / 0.4946 GB, free: 7.078 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004981/0.5241, allocations: 5.112 MB / 0.4996 GB, free: 244 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008543/0.5327, allocations: 7.405 MB / 0.5069 GB, free: 7.121 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/0.5328, allocations: 36 kB / 0.5069 GB, free: 7.086 MB / 430.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01228/0.5451, allocations: 6.7 MB / 0.5134 GB, free: 388 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001305/0.5453, allocations: 60.94 kB / 0.5135 GB, free: 328 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002177/0.5455, allocations: 120 kB / 0.5136 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007134/0.5462, allocations: 324.7 kB / 0.5139 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003841/0.5501, allocations: 1.24 MB / 0.5151 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/0.5527, allocations: 2.291 MB / 0.5174 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003562/0.5563, allocations: 291.5 kB / 0.5176 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006088/0.5569, allocations: 328 kB / 0.518 GB, free: 11.61 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003148/0.5601, allocations: 1.787 MB / 0.5197 GB, free: 9.809 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00076/0.5608, allocations: 308 kB / 0.52 GB, free: 9.504 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004991/0.5658, allocations: 2.371 MB / 0.5223 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.177e-05/0.5659, allocations: 23.92 kB / 0.5223 GB, free: 7.098 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.5659, allocations: 4 kB / 0.5223 GB, free: 7.094 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.015e-05/0.5659, allocations: 3.984 kB / 0.5223 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01297/0.5789, allocations: 5.915 MB / 0.5281 GB, free: 1.105 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/0.579, allocations: 3.984 kB / 0.5281 GB, free: 1.102 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000837/0.5798, allocations: 167.8 kB / 0.5283 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002166/0.582, allocations: 0.7186 MB / 0.529 GB, free: 220 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.5821, allocations: 31.86 kB / 0.529 GB, free: 188 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2042/0.7863, allocations: 4.455 MB / 0.5334 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.7863, allocations: 6.469 kB / 0.5334 GB, free: 146.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007219/0.7936, allocations: 4.326 MB / 0.5376 GB, free: 145 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000966/0.7946, allocations: 369.1 kB / 0.5379 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003173/0.7949, allocations: 20.06 kB / 0.538 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.796, allocations: 72.58 kB / 0.538 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002409/0.7963, allocations: 72.8 kB / 0.5381 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.451e-05/0.7964, allocations: 32.12 kB / 0.5381 GB, free: 144.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003991/0.8004, allocations: 2.325 MB / 0.5404 GB, free: 144.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8004, allocations: 0 / 0.5404 GB, free: 144.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004683/0.8051, allocations: 0.8174 MB / 0.5412 GB, free: 144 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00749/0.8126, allocations: 4.96 MB / 0.5461 GB, free: 141.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00705/0.8196, allocations: 4.02 MB / 0.55 GB, free: 140.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.8197, allocations: 3.391 kB / 0.55 GB, free: 140.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.821, allocations: 1.106 MB / 0.5511 GB, free: 140.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002962/0.8239, allocations: 379.6 kB / 0.5514 GB, free: 139.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04967/0.8736, allocations: 43.76 MB / 0.5942 GB, free: 95.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00233/0.876, allocations: 2.781 MB / 0.5969 GB, free: 92.96 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00348/0.8795, allocations: 1.664 MB / 0.5985 GB, free: 91.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001616/0.8811, allocations: 1.526 MB / 0.6 GB, free: 89.77 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.8811, allocations: 0 / 0.6 GB, free: 89.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08092/0.9621, allocations: 59.21 MB / 0.6578 GB, free: 31.01 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/0.9623, allocations: 250.5 kB / 0.658 GB, free: 30.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.759/4.722, allocations: 0 / 0.658 GB, free: 30.75 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches