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.001422/0.001422, allocations: 117.3 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001164/0.001164, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 67.88 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2848, 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.01099/0.2958, allocations: 10.19 MB / 419 MB, free: 7.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007763/0.3036, allocations: 3.794 MB / 422.7 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001918/0.3056, allocations: 51.88 kB / 422.8 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004449/0.3101, allocations: 1.95 MB / 424.7 MB, free: 1.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005367/0.3155, allocations: 1.669 MB / 426.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.318, allocations: 0.6122 MB / 427 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005743/0.3237, allocations: 3.353 MB / 430.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003896/0.3277, allocations: 2.567 MB / 432.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002396/0.3301, allocations: 1.23 MB / 434.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00275/0.3329, allocations: 1.666 MB / 435.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009959/0.3339, allocations: 252 kB / 436.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002656/0.3366, allocations: 1.022 MB / 437.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002128/0.3388, allocations: 1.566 MB / 438.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003142/0.3419, allocations: 1.813 MB / 440.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008156/0.3501, allocations: 5.809 MB / 446.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.3502, allocations: 0 / 446.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3502, allocations: 0 / 446.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002326/0.3504, allocations: 0 / 446.3 MB, free: 11.82 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.01022/0.3607, allocations: 4.117 MB / 450.4 MB, free: 7.629 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.3607, allocations: 8.031 kB / 450.4 MB, free: 7.621 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001694/0.3624, allocations: 0.6082 MB / 451 MB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00687/0.3693, allocations: 1.808 MB / 452.8 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00571/0.3751, allocations: 2.162 MB / 455 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002415/0.3754, allocations: 192.8 kB / 455.2 MB, free: 2.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001381/0.3768, allocations: 259.8 kB / 455.4 MB, free: 2.523 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01908/0.3959, allocations: 8.439 MB / 463.9 MB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001844/0.3961, allocations: 43.64 kB / 463.9 MB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001013/0.3972, allocations: 131.9 kB / 464.1 MB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002942/0.4001, allocations: 1.695 MB / 465.8 MB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01363/0.4138, allocations: 7.11 MB / 472.9 MB, free: 444 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04087/0.4547, allocations: 34.07 MB / 0.495 GB, free: 13.37 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008039/0.4628, allocations: 3.291 MB / 0.4983 GB, free: 9.922 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002199/0.465, allocations: 1.47 MB / 0.4997 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008589/0.4736, allocations: 4.45 MB / 0.504 GB, free: 3.766 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.4737, allocations: 47.06 kB / 0.5041 GB, free: 3.711 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 4.889e-06/0.4737, allocations: 0 / 0.5041 GB, free: 3.711 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.03143/0.5052, allocations: 11.76 MB / 0.5156 GB, free: 7.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/0.5053, allocations: 145.1 kB / 0.5157 GB, free: 7.648 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006924/0.5122, allocations: 3.726 MB / 0.5194 GB, free: 3.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002632/0.5125, allocations: 41.7 kB / 0.5194 GB, free: 3.883 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002191/0.5147, allocations: 2.854 MB / 0.5222 GB, free: 1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006966/0.5155, allocations: 0.5429 MB / 0.5227 GB, free: 464 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002263/0.5177, allocations: 1.084 MB / 0.5238 GB, free: 15.36 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.5179, allocations: 305.1 kB / 0.5241 GB, free: 15.06 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002798/0.5207, allocations: 1.697 MB / 0.5257 GB, free: 13.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005112/0.5258, allocations: 5.123 MB / 0.5307 GB, free: 6.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2565/0.7823, allocations: 7.4 MB / 0.5379 GB, free: 118.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001364/0.7825, allocations: 39.22 kB / 0.538 GB, free: 118.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.0108/0.7933, allocations: 6.725 MB / 0.5446 GB, free: 116.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.643e-05/0.7935, allocations: 60.61 kB / 0.5446 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.7936, allocations: 123.9 kB / 0.5447 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005657/0.7941, allocations: 322.2 kB / 0.545 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003204/0.7974, allocations: 1.239 MB / 0.5462 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002058/0.7994, allocations: 2.491 MB / 0.5487 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003584/0.803, allocations: 294.8 kB / 0.549 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004708/0.8035, allocations: 331.2 kB / 0.5493 GB, free: 114 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.002204/0.8057, allocations: 1.79 MB / 0.551 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004656/0.8062, allocations: 326.8 kB / 0.5513 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003917/0.8101, allocations: 2.367 MB / 0.5536 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-05/0.8102, allocations: 14.94 kB / 0.5537 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.8102, allocations: 3.594 kB / 0.5537 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.8102, allocations: 12.05 kB / 0.5537 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009585/0.8198, allocations: 5.922 MB / 0.5595 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.8199, allocations: 3.938 kB / 0.5595 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007464/0.8206, allocations: 178 kB / 0.5596 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/0.8225, allocations: 0.7092 MB / 0.5603 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.169e-05/0.8226, allocations: 29.75 kB / 0.5604 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004638/0.8272, allocations: 4.815 MB / 0.5651 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.8273, allocations: 4 kB / 0.5651 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00544/0.8327, allocations: 4.364 MB / 0.5693 GB, free: 98.61 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009347/0.8337, allocations: 373.9 kB / 0.5697 GB, free: 98.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003736/0.8341, allocations: 20.12 kB / 0.5697 GB, free: 98.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.8351, allocations: 79.91 kB / 0.5698 GB, free: 98.13 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.8353, allocations: 64.56 kB / 0.5698 GB, free: 98.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.778e-05/0.8354, allocations: 32 kB / 0.5699 GB, free: 98.03 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002852/0.8383, allocations: 2.323 MB / 0.5721 GB, free: 95.72 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.8383, allocations: 0 / 0.5721 GB, free: 95.72 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003909/0.8422, allocations: 0.8039 MB / 0.5729 GB, free: 94.93 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.005562/0.8478, allocations: 4.986 MB / 0.5778 GB, free: 89.91 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005124/0.8529, allocations: 4.042 MB / 0.5817 GB, free: 85.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.8529, allocations: 0.5625 kB / 0.5817 GB, free: 85.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.8542, allocations: 1.122 MB / 0.5828 GB, free: 84.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/0.8564, allocations: 390.9 kB / 0.5832 GB, free: 84.38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03822/0.8946, allocations: 37.7 MB / 0.62 GB, free: 41.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/0.8967, allocations: 2.788 MB / 0.6227 GB, free: 38.69 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002916/0.8997, allocations: 1.656 MB / 0.6244 GB, free: 37.03 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/0.9012, allocations: 1.522 MB / 0.6258 GB, free: 35.51 MB / 462.1 MB Notification: Performance of SimCode: time 2.285e-06/0.9012, allocations: 0 / 0.6258 GB, free: 35.51 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08941/0.9906, allocations: 57.46 MB / 0.682 GB, free: 10.45 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.33/24.32, allocations: 8 kB / 0.682 GB, free: 10.44 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 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.csv","/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