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.001371/0.001371, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001628/0.001628, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001357, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.305, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01062/0.3157, allocations: 10.2 MB / 419 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007491/0.3232, allocations: 3.794 MB / 422.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001724/0.325, allocations: 55.88 kB / 422.8 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004291/0.3294, allocations: 1.943 MB / 424.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004951/0.3343, allocations: 1.626 MB / 426.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002167/0.3365, allocations: 0.6121 MB / 427 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005147/0.3417, allocations: 3.353 MB / 430.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003789/0.3455, allocations: 2.573 MB / 432.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003267/0.3488, allocations: 1.238 MB / 434.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003118/0.3519, allocations: 1.662 MB / 435.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008994/0.3528, allocations: 255.9 kB / 436.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003108/0.356, allocations: 1.022 MB / 437.1 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002516/0.3585, allocations: 1.555 MB / 438.6 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003162/0.3617, allocations: 1.829 MB / 440.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007696/0.3694, allocations: 5.777 MB / 446.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3694, allocations: 0 / 446.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3694, allocations: 4 kB / 446.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002113/0.3696, allocations: 0 / 446.2 MB, free: 11.88 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.008653/0.3783, allocations: 3.999 MB / 450.2 MB, free: 7.809 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.000132/0.3785, allocations: 12.03 kB / 450.3 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001152/0.3796, allocations: 0.6082 MB / 450.9 MB, free: 7.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005889/0.3855, allocations: 1.782 MB / 452.6 MB, free: 5.391 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004125/0.3897, allocations: 2.161 MB / 454.8 MB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3898, allocations: 188.8 kB / 455 MB, free: 2.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006187/0.3904, allocations: 259.8 kB / 455.2 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01588/0.4063, allocations: 8.443 MB / 463.7 MB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004343/0.4069, allocations: 43.69 kB / 463.7 MB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008217/0.4078, allocations: 123.9 kB / 463.9 MB, free: 9.453 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002745/0.4105, allocations: 1.692 MB / 465.5 MB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01457/0.4251, allocations: 7.114 MB / 472.7 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04296/0.4681, allocations: 34 MB / 0.4948 GB, free: 13.64 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007979/0.4762, allocations: 3.302 MB / 0.498 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002091/0.4783, allocations: 1.466 MB / 0.4994 GB, free: 8.703 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00745/0.4858, allocations: 4.441 MB / 0.5038 GB, free: 4.039 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.4859, allocations: 47.05 kB / 0.5038 GB, free: 3.984 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 3.647e-06/0.4859, allocations: 0 / 0.5038 GB, free: 3.984 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.03045/0.5164, allocations: 11.55 MB / 0.5151 GB, free: 8.277 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.178e-05/0.5165, allocations: 145.1 kB / 0.5152 GB, free: 8.105 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006921/0.5234, allocations: 3.717 MB / 0.5189 GB, free: 4.395 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002383/0.5237, allocations: 45.61 kB / 0.5189 GB, free: 4.348 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002041/0.5257, allocations: 2.744 MB / 0.5216 GB, free: 1.562 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006719/0.5264, allocations: 0.517 MB / 0.5221 GB, free: 1.039 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002332/0.5288, allocations: 1.083 MB / 0.5232 GB, free: 15.94 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.5289, allocations: 301.1 kB / 0.5234 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00286/0.5318, allocations: 1.701 MB / 0.5251 GB, free: 13.94 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005806/0.5377, allocations: 5.119 MB / 0.5301 GB, free: 7.086 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2744/0.8121, allocations: 7.403 MB / 0.5373 GB, free: 118.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001322/0.8123, allocations: 38.62 kB / 0.5374 GB, free: 118.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.01139/0.8237, allocations: 6.705 MB / 0.5439 GB, free: 116.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.298e-05/0.8238, allocations: 61.28 kB / 0.544 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001279/0.8239, allocations: 123.9 kB / 0.5441 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.825, allocations: 319.5 kB / 0.5444 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003416/0.8285, allocations: 1.236 MB / 0.5456 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/0.8303, allocations: 2.5 MB / 0.548 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0027/0.8331, allocations: 289.3 kB / 0.5483 GB, free: 114.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002866/0.8333, allocations: 329.3 kB / 0.5486 GB, free: 114.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.002362/0.8357, allocations: 1.79 MB / 0.5504 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003671/0.8361, allocations: 309.6 kB / 0.5507 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00366/0.8398, allocations: 2.371 MB / 0.553 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/0.8398, allocations: 15.81 kB / 0.553 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.8398, allocations: 3.938 kB / 0.553 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.8398, allocations: 8.328 kB / 0.553 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008953/0.8488, allocations: 5.913 MB / 0.5588 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.8488, allocations: 9.25 kB / 0.5588 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000686/0.8495, allocations: 175.7 kB / 0.559 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001747/0.8512, allocations: 0.7131 MB / 0.5597 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-05/0.8513, allocations: 25.73 kB / 0.5597 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004496/0.8558, allocations: 4.814 MB / 0.5644 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.8558, allocations: 1.5 kB / 0.5644 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005571/0.8614, allocations: 4.341 MB / 0.5686 GB, free: 99.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.8625, allocations: 360.9 kB / 0.569 GB, free: 98.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002987/0.8628, allocations: 20.12 kB / 0.569 GB, free: 98.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.8639, allocations: 75.84 kB / 0.5691 GB, free: 98.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.8641, allocations: 72.5 kB / 0.5691 GB, free: 98.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.55e-05/0.8642, allocations: 35.98 kB / 0.5692 GB, free: 98.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003001/0.8672, allocations: 2.319 MB / 0.5714 GB, free: 96.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8672, allocations: 0 / 0.5714 GB, free: 96.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003913/0.8711, allocations: 0.8039 MB / 0.5722 GB, free: 95.63 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.006063/0.8772, allocations: 4.973 MB / 0.5771 GB, free: 90.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005133/0.8823, allocations: 4.045 MB / 0.581 GB, free: 86.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.8823, allocations: 0 / 0.581 GB, free: 86.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.8834, allocations: 1.112 MB / 0.5821 GB, free: 85.48 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/0.886, allocations: 389.6 kB / 0.5825 GB, free: 85.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03971/0.9257, allocations: 37.57 MB / 0.6192 GB, free: 42.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002669/0.9285, allocations: 2.773 MB / 0.6219 GB, free: 39.56 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003446/0.932, allocations: 1.656 MB / 0.6235 GB, free: 37.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001504/0.9335, allocations: 1.519 MB / 0.625 GB, free: 36.38 MB / 462.1 MB Notification: Performance of SimCode: time 7.32e-07/0.9335, allocations: 4 kB / 0.625 GB, free: 36.38 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2293/1.163, allocations: 58.35 MB / 0.682 GB, free: 10.43 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.1/24.27, allocations: 4.062 kB / 0.682 GB, free: 10.43 MB / 494.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