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.001179/0.001179, allocations: 117.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 199.8 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001037/0.001037, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2628, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01042/0.2732, allocations: 10.19 MB / 418.9 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006572/0.2798, allocations: 3.779 MB / 422.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001212/0.2811, allocations: 59.81 kB / 422.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003531/0.2847, allocations: 1.954 MB / 424.7 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003442/0.2881, allocations: 1.626 MB / 426.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001378/0.2895, allocations: 0.6121 MB / 427 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003976/0.2935, allocations: 3.357 MB / 430.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002849/0.2964, allocations: 2.566 MB / 432.9 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.298, allocations: 1.23 MB / 434.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.2999, allocations: 1.666 MB / 435.8 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000395/0.3003, allocations: 256 kB / 436 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001557/0.3019, allocations: 1.022 MB / 437.1 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001222/0.3031, allocations: 1.57 MB / 438.6 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00146/0.3046, allocations: 1.806 MB / 440.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00521/0.3098, allocations: 5.792 MB / 446.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3098, allocations: 0 / 446.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3098, allocations: 0 / 446.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.809e-05/0.3099, allocations: 0 / 446.2 MB, free: 11.86 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.006365/0.3163, allocations: 4.003 MB / 450.2 MB, free: 7.793 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.3163, allocations: 8.031 kB / 450.2 MB, free: 7.785 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006022/0.3169, allocations: 0.6082 MB / 450.9 MB, free: 7.168 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005877/0.3228, allocations: 1.778 MB / 452.6 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003789/0.3266, allocations: 2.157 MB / 454.8 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.3268, allocations: 196.8 kB / 455 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000408/0.3272, allocations: 259.8 kB / 455.2 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01106/0.3383, allocations: 8.446 MB / 463.7 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-05/0.3384, allocations: 31.75 kB / 463.7 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003072/0.3387, allocations: 127.9 kB / 463.8 MB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002482/0.3412, allocations: 1.695 MB / 465.5 MB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/0.353, allocations: 7.114 MB / 472.6 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03527/0.3883, allocations: 34.01 MB / 0.4948 GB, free: 13.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006822/0.3951, allocations: 3.294 MB / 0.498 GB, free: 10.17 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/0.3968, allocations: 1.466 MB / 0.4994 GB, free: 8.695 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006273/0.4031, allocations: 4.437 MB / 0.5038 GB, free: 4.031 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.4032, allocations: 51.06 kB / 0.5038 GB, free: 3.973 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 3.296e-06/0.4032, allocations: 4 kB / 0.5038 GB, free: 3.969 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02676/0.4299, allocations: 11.54 MB / 0.5151 GB, free: 8.277 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.313e-05/0.43, allocations: 153 kB / 0.5152 GB, free: 8.098 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004588/0.4346, allocations: 3.717 MB / 0.5189 GB, free: 4.387 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000182/0.4348, allocations: 45.69 kB / 0.5189 GB, free: 4.336 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001689/0.4365, allocations: 2.744 MB / 0.5216 GB, free: 1.551 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004723/0.437, allocations: 0.5209 MB / 0.5221 GB, free: 1.023 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001195/0.4382, allocations: 1.067 MB / 0.5231 GB, free: 15.94 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4383, allocations: 309.1 kB / 0.5234 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002136/0.4405, allocations: 1.697 MB / 0.5251 GB, free: 13.94 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004076/0.4446, allocations: 5.123 MB / 0.5301 GB, free: 7.082 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1964/0.641, allocations: 7.41 MB / 0.5373 GB, free: 118.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/0.6411, allocations: 38 kB / 0.5374 GB, free: 118.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.009273/0.6504, allocations: 6.706 MB / 0.5439 GB, free: 116.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.152e-05/0.6505, allocations: 61.75 kB / 0.544 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/0.6506, allocations: 124.2 kB / 0.5441 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000506/0.6511, allocations: 313.5 kB / 0.5444 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/0.6541, allocations: 1.24 MB / 0.5456 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/0.6559, allocations: 2.497 MB / 0.548 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002808/0.6587, allocations: 291 kB / 0.5483 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/0.659, allocations: 327.7 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.001936/0.661, allocations: 1.798 MB / 0.5504 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003344/0.6613, allocations: 303.1 kB / 0.5507 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003638/0.665, allocations: 2.373 MB / 0.553 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.665, allocations: 15.72 kB / 0.553 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.665, allocations: 3.938 kB / 0.553 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.665, allocations: 3.797 kB / 0.553 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008532/0.6735, allocations: 5.921 MB / 0.5588 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.403e-06/0.6736, allocations: 8 kB / 0.5588 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006928/0.6743, allocations: 176.2 kB / 0.559 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/0.6761, allocations: 0.7147 MB / 0.5597 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.563e-05/0.6762, allocations: 24 kB / 0.5597 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004286/0.6805, allocations: 4.809 MB / 0.5644 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6805, allocations: 3.359 kB / 0.5644 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005266/0.6858, allocations: 4.34 MB / 0.5686 GB, free: 99.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005833/0.6864, allocations: 364.9 kB / 0.569 GB, free: 98.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.6866, allocations: 19.98 kB / 0.569 GB, free: 98.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009344/0.6876, allocations: 71.86 kB / 0.5691 GB, free: 98.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.6877, allocations: 68.5 kB / 0.5691 GB, free: 98.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.883e-05/0.6878, allocations: 39.98 kB / 0.5692 GB, free: 98.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002365/0.6902, allocations: 2.319 MB / 0.5714 GB, free: 96.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6902, allocations: 0 / 0.5714 GB, free: 96.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003144/0.6933, allocations: 0.8074 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.005145/0.6985, allocations: 4.971 MB / 0.5771 GB, free: 90.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004319/0.7028, allocations: 4.041 MB / 0.581 GB, free: 86.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.7028, allocations: 4 kB / 0.581 GB, free: 86.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.7039, allocations: 1.108 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.001866/0.7058, allocations: 393.8 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.03271/0.7385, allocations: 37.56 MB / 0.6192 GB, free: 42.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001944/0.7405, allocations: 2.773 MB / 0.6219 GB, free: 39.57 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002682/0.7432, allocations: 1.664 MB / 0.6235 GB, free: 37.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/0.7445, allocations: 1.525 MB / 0.625 GB, free: 36.38 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.7445, allocations: 0 / 0.625 GB, free: 36.38 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.917/2.661, allocations: 58.35 MB / 0.682 GB, free: 10.43 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.9/26.56, allocations: 0 / 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