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.001321/0.001321, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 199.8 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 63.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2882, allocations: 50.55 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01269/0.301, allocations: 10.2 MB / 419 MB, free: 7.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008445/0.3095, allocations: 3.787 MB / 422.8 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001745/0.3113, allocations: 55.81 kB / 422.9 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00407/0.3154, allocations: 1.946 MB / 424.8 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00486/0.3203, allocations: 1.623 MB / 426.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001599/0.3219, allocations: 0.6082 MB / 427 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005061/0.327, allocations: 3.357 MB / 430.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003509/0.3305, allocations: 2.571 MB / 433 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002571/0.3331, allocations: 1.234 MB / 434.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002915/0.3361, allocations: 1.666 MB / 435.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006957/0.3368, allocations: 252 kB / 436.1 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002346/0.3392, allocations: 1.01 MB / 437.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00176/0.3409, allocations: 1.543 MB / 438.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0023/0.3432, allocations: 1.821 MB / 440.5 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008658/0.3519, allocations: 5.805 MB / 446.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.352, allocations: 4 kB / 446.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.352, allocations: 4 kB / 446.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002322/0.3522, allocations: 0 / 446.3 MB, free: 11.83 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.01086/0.3631, allocations: 4.113 MB / 450.4 MB, free: 7.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.3632, allocations: 16.03 kB / 450.4 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001123/0.3643, allocations: 0.6082 MB / 451 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00671/0.371, allocations: 1.796 MB / 452.8 MB, free: 5.211 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005223/0.3763, allocations: 2.178 MB / 455 MB, free: 2.973 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.3765, allocations: 192.8 kB / 455.2 MB, free: 2.781 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006929/0.3772, allocations: 247.8 kB / 455.4 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01605/0.3933, allocations: 8.443 MB / 463.9 MB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001092/0.3934, allocations: 47.62 kB / 463.9 MB, free: 9.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003512/0.3938, allocations: 119.9 kB / 464.1 MB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002822/0.3966, allocations: 1.699 MB / 465.8 MB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01301/0.4096, allocations: 7.114 MB / 472.9 MB, free: 456 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04069/0.4504, allocations: 34.08 MB / 0.4951 GB, free: 13.38 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007679/0.4581, allocations: 3.29 MB / 0.4983 GB, free: 9.934 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00203/0.4602, allocations: 1.458 MB / 0.4997 GB, free: 8.465 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006655/0.4668, allocations: 4.457 MB / 0.504 GB, free: 3.781 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.4669, allocations: 47.11 kB / 0.5041 GB, free: 3.727 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 3.376e-06/0.4669, allocations: 0 / 0.5041 GB, free: 3.727 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02917/0.4961, allocations: 11.75 MB / 0.5156 GB, free: 7.848 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/0.4963, allocations: 149.1 kB / 0.5157 GB, free: 7.672 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005831/0.5021, allocations: 3.73 MB / 0.5194 GB, free: 3.949 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002874/0.5024, allocations: 41.7 kB / 0.5194 GB, free: 3.902 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002273/0.5047, allocations: 2.858 MB / 0.5222 GB, free: 1.016 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008116/0.5055, allocations: 0.539 MB / 0.5227 GB, free: 484 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001584/0.5071, allocations: 1.08 MB / 0.5238 GB, free: 15.38 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5073, allocations: 305.1 kB / 0.5241 GB, free: 15.08 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002703/0.51, allocations: 1.697 MB / 0.5257 GB, free: 13.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005722/0.5157, allocations: 5.127 MB / 0.5307 GB, free: 6.52 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2576/0.7733, allocations: 7.403 MB / 0.5379 GB, free: 118.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/0.7735, allocations: 35.03 kB / 0.538 GB, free: 118.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.0101/0.7836, allocations: 6.724 MB / 0.5445 GB, free: 116.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.032e-05/0.7837, allocations: 59.44 kB / 0.5446 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.792e-05/0.7838, allocations: 119.7 kB / 0.5447 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000535/0.7844, allocations: 322.6 kB / 0.545 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003263/0.7876, allocations: 1.245 MB / 0.5462 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.7899, allocations: 2.493 MB / 0.5487 GB, free: 114.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003562/0.7934, allocations: 287 kB / 0.549 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006028/0.7941, allocations: 334.5 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.002543/0.7966, allocations: 1.785 MB / 0.551 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005193/0.7971, allocations: 335.5 kB / 0.5513 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004038/0.8012, allocations: 2.372 MB / 0.5536 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/0.8012, allocations: 15.06 kB / 0.5537 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.8012, allocations: 3.688 kB / 0.5537 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.8013, allocations: 13.31 kB / 0.5537 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00935/0.8106, allocations: 5.911 MB / 0.5595 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.998e-06/0.8107, allocations: 7.938 kB / 0.5595 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007313/0.8114, allocations: 173.8 kB / 0.5596 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001875/0.8133, allocations: 0.717 MB / 0.5603 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.8134, allocations: 16 kB / 0.5603 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004503/0.8179, allocations: 4.817 MB / 0.565 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.8179, allocations: 4 kB / 0.565 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005517/0.8235, allocations: 4.362 MB / 0.5693 GB, free: 98.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006584/0.8241, allocations: 378 kB / 0.5697 GB, free: 98.21 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002841/0.8244, allocations: 23.98 kB / 0.5697 GB, free: 98.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009667/0.8254, allocations: 67.84 kB / 0.5698 GB, free: 98.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.8256, allocations: 66 kB / 0.5698 GB, free: 98.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.197e-05/0.8257, allocations: 35.98 kB / 0.5699 GB, free: 98.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002634/0.8283, allocations: 2.319 MB / 0.5721 GB, free: 95.71 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8283, allocations: 0 / 0.5721 GB, free: 95.71 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003851/0.8322, allocations: 0.8014 MB / 0.5729 GB, free: 94.92 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.005504/0.8377, allocations: 4.986 MB / 0.5778 GB, free: 89.91 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005007/0.8427, allocations: 4.045 MB / 0.5817 GB, free: 85.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.8428, allocations: 192 / 0.5817 GB, free: 85.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.8439, allocations: 1.128 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.002087/0.846, allocations: 387.9 kB / 0.5832 GB, free: 84.37 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03764/0.8837, allocations: 37.7 MB / 0.62 GB, free: 41.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00213/0.8858, allocations: 2.788 MB / 0.6227 GB, free: 38.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002916/0.8888, allocations: 1.66 MB / 0.6244 GB, free: 37.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00141/0.8902, allocations: 1.519 MB / 0.6258 GB, free: 35.5 MB / 462.1 MB Notification: Performance of SimCode: time 5.81e-07/0.8902, allocations: 0 / 0.6258 GB, free: 35.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.102/0.9922, allocations: 57.46 MB / 0.682 GB, free: 10.44 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.24/26.23, allocations: 6 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 & /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.1.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