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.001931/0.001931, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.002394/0.002393, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.486/1.486, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3151, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01238/0.3275, allocations: 10.23 MB / 410.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008557/0.3361, allocations: 3.775 MB / 414.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001572/0.3377, allocations: 55.88 kB / 414.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003813/0.3416, allocations: 1.958 MB / 416.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004719/0.3464, allocations: 1.652 MB / 417.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001634/0.348, allocations: 0.616 MB / 418.5 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005017/0.353, allocations: 3.325 MB / 421.8 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003684/0.3567, allocations: 2.578 MB / 424.4 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00237/0.3591, allocations: 1.238 MB / 425.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002522/0.3617, allocations: 1.67 MB / 427.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005978/0.3623, allocations: 256 kB / 427.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002085/0.3644, allocations: 1.03 MB / 428.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001711/0.3661, allocations: 1.562 MB / 430.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002268/0.3684, allocations: 1.833 MB / 432 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007938/0.3763, allocations: 5.863 MB / 437.9 MB, free: 3.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3764, allocations: 3.938 kB / 437.9 MB, free: 3 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3764, allocations: 0 / 437.9 MB, free: 3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001663/0.3766, allocations: 4 kB / 437.9 MB, free: 2.996 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.008785/0.3854, allocations: 4.135 MB / 442 MB, free: 14.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.3854, allocations: 12.03 kB / 442 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008579/0.3863, allocations: 0.6043 MB / 442.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006666/0.393, allocations: 1.8 MB / 444.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005057/0.3981, allocations: 2.283 MB / 446.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002887/0.3984, allocations: 188.8 kB / 446.9 MB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007305/0.3991, allocations: 251.8 kB / 447.1 MB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01697/0.4161, allocations: 8.427 MB / 455.6 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000126/0.4163, allocations: 47.64 kB / 455.6 MB, free: 456 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004014/0.4167, allocations: 123.9 kB / 455.7 MB, free: 332 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003119/0.4198, allocations: 1.699 MB / 457.4 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01507/0.4349, allocations: 7.094 MB / 464.5 MB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04696/0.4819, allocations: 34.08 MB / 498.6 MB, free: 4.457 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007888/0.4898, allocations: 3.29 MB / 0.4901 GB, free: 1.016 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00209/0.492, allocations: 1.456 MB / 0.4916 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006676/0.4986, allocations: 4.374 MB / 0.4958 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.4987, allocations: 55.05 kB / 0.4959 GB, free: 10.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 2.976e-06/0.4987, allocations: 3.938 kB / 0.4959 GB, free: 10.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02982/0.5286, allocations: 11.7 MB / 0.5073 GB, free: 15.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.5287, allocations: 149.1 kB / 0.5075 GB, free: 14.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005903/0.5346, allocations: 3.73 MB / 0.5111 GB, free: 11.17 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003001/0.535, allocations: 45.7 kB / 0.5111 GB, free: 11.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002738/0.5377, allocations: 2.862 MB / 0.5139 GB, free: 8.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000869/0.5386, allocations: 0.5467 MB / 0.5145 GB, free: 7.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001634/0.5402, allocations: 1.084 MB / 0.5155 GB, free: 6.586 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.5404, allocations: 301.1 kB / 0.5158 GB, free: 6.289 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002738/0.5431, allocations: 1.693 MB / 0.5175 GB, free: 4.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005956/0.5491, allocations: 5.123 MB / 0.5225 GB, free: 13.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/0.5596, allocations: 7.397 MB / 0.5297 GB, free: 4.633 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001137/0.5597, allocations: 36 kB / 0.5297 GB, free: 4.598 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.2298/0.7896, allocations: 6.713 MB / 0.5363 GB, free: 125.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.7897, allocations: 58.36 kB / 0.5363 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000273/0.79, allocations: 121.2 kB / 0.5365 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007628/0.7908, allocations: 319.5 kB / 0.5368 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004074/0.7949, allocations: 1.242 MB / 0.538 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002657/0.7976, allocations: 2.495 MB / 0.5404 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004414/0.802, allocations: 290.7 kB / 0.5407 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009252/0.803, allocations: 333 kB / 0.541 GB, free: 123.6 MB / 462.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.003314/0.8063, allocations: 1.789 MB / 0.5428 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006641/0.807, allocations: 323.4 kB / 0.5431 GB, free: 123.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004449/0.8114, allocations: 2.375 MB / 0.5454 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/0.8115, allocations: 13.88 kB / 0.5454 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.8115, allocations: 3.688 kB / 0.5454 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.8115, allocations: 3.703 kB / 0.5454 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00968/0.8212, allocations: 5.905 MB / 0.5512 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/0.8212, allocations: 0 / 0.5512 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000763/0.822, allocations: 171.1 kB / 0.5513 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001986/0.824, allocations: 0.7228 MB / 0.552 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.952e-05/0.8241, allocations: 22.78 kB / 0.5521 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00492/0.829, allocations: 4.81 MB / 0.5568 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.8291, allocations: 3.938 kB / 0.5568 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005571/0.8346, allocations: 4.341 MB / 0.561 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007412/0.8354, allocations: 378.6 kB / 0.5614 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002902/0.8357, allocations: 27.98 kB / 0.5614 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009618/0.8367, allocations: 64.86 kB / 0.5614 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.8369, allocations: 68.5 kB / 0.5615 GB, free: 111.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.909e-05/0.837, allocations: 38.28 kB / 0.5615 GB, free: 111.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002567/0.8395, allocations: 2.323 MB / 0.5638 GB, free: 109 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8395, allocations: 0 / 0.5638 GB, free: 109 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003648/0.8432, allocations: 0.8256 MB / 0.5646 GB, free: 108.2 MB / 462.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.005506/0.8487, allocations: 4.98 MB / 0.5695 GB, free: 103.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00523/0.854, allocations: 4.033 MB / 0.5734 GB, free: 99.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/0.854, allocations: 0 / 0.5734 GB, free: 99.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.8552, allocations: 1.119 MB / 0.5745 GB, free: 98.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/0.8577, allocations: 386.5 kB / 0.5749 GB, free: 97.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04451/0.9023, allocations: 37.71 MB / 0.6117 GB, free: 54.84 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002378/0.9047, allocations: 2.789 MB / 0.6144 GB, free: 52.03 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003056/0.9078, allocations: 1.66 MB / 0.6161 GB, free: 50.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001518/0.9093, allocations: 1.522 MB / 0.6175 GB, free: 48.84 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.9093, allocations: 4 kB / 0.6175 GB, free: 48.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0975/1.007, allocations: 57.59 MB / 0.6738 GB, free: 7.695 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.18/24.19, allocations: 9 kB / 0.6738 GB, free: 7.688 MB / 478.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