Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00121/0.001211, allocations: 111.1 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 196 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 47.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2665, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01175/0.2783, allocations: 10.23 MB / 410.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008004/0.2863, allocations: 3.775 MB / 414.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001666/0.288, allocations: 55.88 kB / 414.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004346/0.2924, allocations: 1.95 MB / 416.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004532/0.297, allocations: 1.7 MB / 417.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00162/0.2986, allocations: 0.6082 MB / 418.6 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005045/0.3037, allocations: 3.324 MB / 421.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00354/0.3073, allocations: 2.585 MB / 424.5 MB, free: 444 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002054/0.3093, allocations: 1.242 MB / 425.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002678/0.312, allocations: 1.674 MB / 427.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008653/0.3129, allocations: 256 kB / 427.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002368/0.3153, allocations: 1.041 MB / 428.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001944/0.3173, allocations: 1.57 MB / 430.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002827/0.3201, allocations: 1.841 MB / 432.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007086/0.3272, allocations: 5.831 MB / 437.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3272, allocations: 0 / 437.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3272, allocations: 0 / 437.9 MB, free: 2.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002049/0.3274, allocations: 0 / 437.9 MB, free: 2.938 MB / 350.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.009046/0.3365, allocations: 4.03 MB / 441.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.3366, allocations: 8.031 kB / 442 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001533/0.3381, allocations: 0.6043 MB / 442.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006291/0.3444, allocations: 1.786 MB / 444.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004674/0.3491, allocations: 2.259 MB / 446.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.3493, allocations: 192.8 kB / 446.8 MB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009985/0.3503, allocations: 251.8 kB / 447 MB, free: 9.668 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01554/0.3659, allocations: 8.427 MB / 455.5 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001648/0.3661, allocations: 43.59 kB / 455.5 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008327/0.367, allocations: 123.9 kB / 455.6 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00292/0.3699, allocations: 1.695 MB / 457.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01467/0.3846, allocations: 7.106 MB / 464.4 MB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04121/0.4258, allocations: 34.01 MB / 498.4 MB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00708/0.433, allocations: 3.283 MB / 0.49 GB, free: 1.156 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.435, allocations: 1.464 MB / 0.4914 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006749/0.4417, allocations: 4.361 MB / 0.4957 GB, free: 11.11 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.417e-05/0.4418, allocations: 51.11 kB / 0.4957 GB, free: 11.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=121): time 5.159e-06/0.4418, allocations: 3.984 kB / 0.4957 GB, free: 11.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=129): time 0.02903/0.4709, allocations: 11.52 MB / 0.507 GB, free: 15.38 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.025e-05/0.471, allocations: 149.1 kB / 0.5071 GB, free: 15.21 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006418/0.4774, allocations: 3.718 MB / 0.5107 GB, free: 11.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002645/0.4777, allocations: 49.69 kB / 0.5108 GB, free: 11.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001976/0.4797, allocations: 2.744 MB / 0.5135 GB, free: 8.656 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006773/0.4804, allocations: 0.5132 MB / 0.514 GB, free: 8.137 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001741/0.4821, allocations: 1.079 MB / 0.515 GB, free: 7.047 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.942e-05/0.4822, allocations: 309.1 kB / 0.5153 GB, free: 6.742 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00251/0.4848, allocations: 1.697 MB / 0.517 GB, free: 5.039 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004781/0.4895, allocations: 5.119 MB / 0.522 GB, free: 14.19 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007671/0.4972, allocations: 7.394 MB / 0.5292 GB, free: 5.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/0.4974, allocations: 36 kB / 0.5292 GB, free: 5.055 MB / 462.1 MB Notification: Performance of matching and sorting (n=692) (initialization): time 0.214/0.7113, allocations: 6.7 MB / 0.5358 GB, free: 125.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/0.7115, allocations: 58.8 kB / 0.5358 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00016/0.7117, allocations: 120.8 kB / 0.5359 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006803/0.7123, allocations: 324.5 kB / 0.5362 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003427/0.7158, allocations: 1.237 MB / 0.5374 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001934/0.7177, allocations: 2.491 MB / 0.5399 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00329/0.721, allocations: 284.8 kB / 0.5401 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004086/0.7215, allocations: 333.1 kB / 0.5405 GB, free: 123.7 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.7234, allocations: 1.796 MB / 0.5422 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003761/0.7238, allocations: 307.3 kB / 0.5425 GB, free: 123.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003622/0.7274, allocations: 2.355 MB / 0.5448 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.487e-05/0.7274, allocations: 24.41 kB / 0.5448 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.7275, allocations: 3.812 kB / 0.5448 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.7275, allocations: 3.703 kB / 0.5448 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008687/0.7362, allocations: 5.914 MB / 0.5506 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.7362, allocations: 0 / 0.5506 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007069/0.7369, allocations: 168 kB / 0.5508 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001827/0.7388, allocations: 0.7145 MB / 0.5515 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.872e-05/0.7389, allocations: 25.98 kB / 0.5515 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004488/0.7434, allocations: 4.814 MB / 0.5562 GB, free: 116.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.7434, allocations: 4.656 kB / 0.5562 GB, free: 116.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005234/0.7486, allocations: 4.33 MB / 0.5604 GB, free: 112.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007101/0.7494, allocations: 361.1 kB / 0.5608 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002838/0.7497, allocations: 22.98 kB / 0.5608 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009524/0.7506, allocations: 67.91 kB / 0.5609 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/0.7508, allocations: 64.56 kB / 0.5609 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.324e-05/0.7509, allocations: 36 kB / 0.561 GB, free: 112 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00288/0.7538, allocations: 2.324 MB / 0.5632 GB, free: 109.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.42e-07/0.7538, allocations: 0 / 0.5632 GB, free: 109.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003811/0.7576, allocations: 0.8218 MB / 0.564 GB, free: 108.9 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.005411/0.763, allocations: 4.965 MB / 0.5689 GB, free: 103.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004877/0.7679, allocations: 4.031 MB / 0.5728 GB, free: 99.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.768, allocations: 1.375 kB / 0.5728 GB, free: 99.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.7691, allocations: 1.107 MB / 0.5739 GB, free: 98.78 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00212/0.7713, allocations: 403.3 kB / 0.5743 GB, free: 98.39 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0378/0.8091, allocations: 37.55 MB / 0.611 GB, free: 55.69 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002567/0.8117, allocations: 2.785 MB / 0.6137 GB, free: 52.88 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003032/0.8147, allocations: 1.664 MB / 0.6153 GB, free: 51.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/0.8163, allocations: 1.519 MB / 0.6168 GB, free: 49.7 MB / 462.1 MB Notification: Performance of SimCode: time 8.02e-07/0.8163, allocations: 0 / 0.6168 GB, free: 49.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2191/1.035, allocations: 57.6 MB / 0.673 GB, free: 8.551 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.25/23.29, allocations: 13.2 kB / 0.673 GB, free: 8.543 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches