Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001545/0.001545, allocations: 109.8 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001824/0.001824, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001324, allocations: 66.64 kB / 306.6 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08685/0.0882, allocations: 50.54 MB / 357.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.1815/0.2697, allocations: 34.46 MB / 391.6 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01838/0.2882, allocations: 7.713 MB / 399.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008414/0.2966, allocations: 147.8 kB / 399.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004216/0.3009, allocations: 1.871 MB / 401.3 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00458/0.3055, allocations: 1.524 MB / 402.8 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.3071, allocations: 0.5633 MB / 403.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00464/0.3118, allocations: 3.388 MB / 406.8 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003526/0.3153, allocations: 2.714 MB / 409.5 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/0.3174, allocations: 1.258 MB / 410.7 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002451/0.3198, allocations: 1.861 MB / 412.6 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006068/0.3205, allocations: 252 kB / 412.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001953/0.3224, allocations: 1.034 MB / 413.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001487/0.3239, allocations: 1.57 MB / 415.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00221/0.3261, allocations: 1.837 MB / 417.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005581/0.3317, allocations: 5.627 MB / 422.9 MB, free: 9.676 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.3318, allocations: 0 / 422.9 MB, free: 9.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3318, allocations: 0 / 422.9 MB, free: 9.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.785e-05/0.3319, allocations: 4 kB / 422.9 MB, free: 9.672 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.005699/0.3376, allocations: 4.003 MB / 426.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3376, allocations: 12.03 kB / 426.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005644/0.3382, allocations: 0.6043 MB / 427.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005484/0.3437, allocations: 1.79 MB / 429.3 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002999/0.3467, allocations: 2.113 MB / 431.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.3468, allocations: 196.8 kB / 431.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003879/0.3472, allocations: 251.9 kB / 431.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01066/0.3579, allocations: 8.443 MB / 440.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.358, allocations: 39.59 kB / 440.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003659/0.3584, allocations: 131.9 kB / 440.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002442/0.3608, allocations: 1.692 MB / 442.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0115/0.3723, allocations: 7.122 MB / 449.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03526/0.4076, allocations: 34.15 MB / 483.4 MB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006734/0.4144, allocations: 3.279 MB / 486.7 MB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.4161, allocations: 1.473 MB / 488.2 MB, free: 6.398 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005704/0.4218, allocations: 4.444 MB / 492.6 MB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.4219, allocations: 51.06 kB / 492.7 MB, free: 1.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 2.956e-06/0.4219, allocations: 0 / 492.7 MB, free: 1.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.02613/0.448, allocations: 11.55 MB / 0.4924 GB, free: 5.969 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/0.4481, allocations: 141.1 kB / 0.4926 GB, free: 5.801 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004524/0.4526, allocations: 3.717 MB / 0.4962 GB, free: 2.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.088e-05/0.4527, allocations: 41.7 kB / 0.4962 GB, free: 2.043 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001593/0.4543, allocations: 2.756 MB / 0.4989 GB, free: 15.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004174/0.4548, allocations: 0.5171 MB / 0.4994 GB, free: 14.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001199/0.456, allocations: 1.079 MB / 0.5005 GB, free: 13.63 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.921e-05/0.4561, allocations: 309.1 kB / 0.5008 GB, free: 13.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002282/0.4583, allocations: 1.701 MB / 0.5024 GB, free: 11.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004106/0.4625, allocations: 5.123 MB / 0.5074 GB, free: 4.766 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006939/0.4694, allocations: 7.403 MB / 0.5147 GB, free: 11.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.993e-05/0.4695, allocations: 36 kB / 0.5147 GB, free: 11.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.009226/0.4787, allocations: 6.699 MB / 0.5212 GB, free: 4.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.169e-05/0.4788, allocations: 60.94 kB / 0.5213 GB, free: 4.852 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001334/0.479, allocations: 124 kB / 0.5214 GB, free: 4.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000564/0.4795, allocations: 324.7 kB / 0.5217 GB, free: 4.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003233/0.4828, allocations: 1.24 MB / 0.5229 GB, free: 3.168 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.4851, allocations: 2.497 MB / 0.5254 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002807/0.488, allocations: 287.5 kB / 0.5257 GB, free: 252 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.1454/0.6333, allocations: 328.2 kB / 0.526 GB, free: 141.5 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.00314/0.6365, allocations: 1.789 MB / 0.5277 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000613/0.6371, allocations: 308.7 kB / 0.528 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004595/0.6417, allocations: 2.373 MB / 0.5303 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.717e-05/0.6418, allocations: 17.38 kB / 0.5303 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.6418, allocations: 3.344 kB / 0.5303 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.6418, allocations: 7.344 kB / 0.5304 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009874/0.6517, allocations: 5.941 MB / 0.5362 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.6517, allocations: 5.188 kB / 0.5362 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007662/0.6525, allocations: 175 kB / 0.5363 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002003/0.6545, allocations: 0.7144 MB / 0.537 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.912e-05/0.6546, allocations: 25.91 kB / 0.537 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004769/0.6594, allocations: 4.807 MB / 0.5417 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.6594, allocations: 2.281 kB / 0.5417 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005747/0.6652, allocations: 4.334 MB / 0.546 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006856/0.6659, allocations: 361.1 kB / 0.5463 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000512/0.6664, allocations: 20.66 kB / 0.5463 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001106/0.6675, allocations: 73.25 kB / 0.5464 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001902/0.6677, allocations: 70.34 kB / 0.5465 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.973e-05/0.6678, allocations: 31.34 kB / 0.5465 GB, free: 134.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00271/0.6705, allocations: 2.327 MB / 0.5488 GB, free: 133.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.6705, allocations: 1.312 kB / 0.5488 GB, free: 133.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003245/0.6738, allocations: 0.8027 MB / 0.5496 GB, free: 133.4 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.005183/0.679, allocations: 4.966 MB / 0.5544 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004815/0.6838, allocations: 4.421 MB / 0.5587 GB, free: 129.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.6838, allocations: 0 / 0.5587 GB, free: 129.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.6849, allocations: 1.117 MB / 0.5598 GB, free: 129.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.6867, allocations: 390.2 kB / 0.5602 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03811/0.7248, allocations: 43.66 MB / 0.6028 GB, free: 78.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001844/0.7267, allocations: 2.783 MB / 0.6056 GB, free: 75.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002999/0.7297, allocations: 1.665 MB / 0.6072 GB, free: 74.16 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/0.731, allocations: 1.515 MB / 0.6087 GB, free: 72.64 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.731, allocations: 0 / 0.6087 GB, free: 72.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3205/1.052, allocations: 60.86 MB / 0.6681 GB, free: 12.14 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/1.052, allocations: 250.4 kB / 0.6683 GB, free: 11.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.913/4.965, allocations: 0 / 0.6683 GB, free: 11.89 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches