Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001113/0.001113, allocations: 103.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 59.69 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09421/0.09567, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008729/0.1044, allocations: 7.399 MB / 365 MB, free: 6.574 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006069/0.1105, allocations: 3.265 MB / 368.3 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001097/0.1117, allocations: 39.88 kB / 368.3 MB, free: 3.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002639/0.1144, allocations: 1.028 MB / 369.3 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003527/0.1179, allocations: 1.339 MB / 370.7 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.1193, allocations: 455.1 kB / 371.1 MB, free: 448 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1595/0.2788, allocations: 2.665 MB / 373.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002031/0.2809, allocations: 1.519 MB / 375.3 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001364/0.2823, allocations: 0.8347 MB / 376.1 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001619/0.2839, allocations: 1.215 MB / 377.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003333/0.2842, allocations: 169.4 kB / 377.5 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001685/0.2859, allocations: 1.015 MB / 378.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00131/0.2873, allocations: 1.096 MB / 379.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.2884, allocations: 1.293 MB / 380.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004406/0.2928, allocations: 4.146 MB / 385.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.2929, allocations: 0 / 385.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2929, allocations: 3.938 kB / 385.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.669e-05/0.293, allocations: 0 / 385.1 MB, free: 7.184 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005884/0.2989, allocations: 3.031 MB / 388.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.2989, allocations: 13.78 kB / 388.1 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005622/0.2995, allocations: 469.9 kB / 388.6 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006919/0.3064, allocations: 1.805 MB / 390.4 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002894/0.3093, allocations: 1.576 MB / 391.9 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.205e-05/0.3094, allocations: 140.7 kB / 392.1 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00064/0.3101, allocations: 253.5 kB / 392.3 MB, free: 3.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009651/0.3197, allocations: 6.671 MB / 399 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.264e-05/0.3198, allocations: 32.62 kB / 399 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002683/0.3201, allocations: 87.58 kB / 399.1 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002171/0.3223, allocations: 1.366 MB / 400.5 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.3336, allocations: 6.048 MB / 406.5 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0325/0.3661, allocations: 25.59 MB / 432.1 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007473/0.3736, allocations: 2.679 MB / 434.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/0.3753, allocations: 1.039 MB / 435.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007211/0.3825, allocations: 3.944 MB / 439.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.3826, allocations: 43.12 kB / 439.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 5.2e-06/0.3826, allocations: 0 / 439.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02983/0.4124, allocations: 10.32 MB / 450.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001614/0.4141, allocations: 1.675 MB / 451.8 MB, free: 9.578 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004559/0.4187, allocations: 2.729 MB / 454.5 MB, free: 6.828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004042/0.4191, allocations: 37.7 kB / 454.6 MB, free: 6.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/0.4208, allocations: 2.084 MB / 456.7 MB, free: 4.703 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005836/0.4214, allocations: 0.5041 MB / 457.2 MB, free: 4.203 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001181/0.4226, allocations: 0.9109 MB / 458.1 MB, free: 3.281 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4227, allocations: 309 kB / 458.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002555/0.4253, allocations: 1.629 MB / 460 MB, free: 1.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004277/0.4295, allocations: 4.433 MB / 464.4 MB, free: 11.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007636/0.4372, allocations: 6.495 MB / 470.9 MB, free: 3.637 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.197e-05/0.4373, allocations: 28 kB / 471 MB, free: 3.609 MB / 382.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01481/0.4521, allocations: 7.058 MB / 478 MB, free: 12.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.177e-05/0.4522, allocations: 48 kB / 478.1 MB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006375/0.4586, allocations: 2.54 MB / 480.6 MB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00532/0.464, allocations: 1.494 MB / 482.1 MB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003266/0.4673, allocations: 1.01 MB / 483.1 MB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.4782, allocations: 7.778 MB / 490.9 MB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003614/0.4818, allocations: 331.5 kB / 491.2 MB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008111/0.4826, allocations: 289.9 kB / 491.5 MB, free: 14.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002829/0.4855, allocations: 1.419 MB / 492.9 MB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005407/0.486, allocations: 233.4 kB / 493.1 MB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008265/0.4869, allocations: 329.9 kB / 493.5 MB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006492/0.4934, allocations: 2.518 MB / 496 MB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-05/0.4934, allocations: 4 kB / 496 MB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.935e-05/0.4934, allocations: 11.91 kB / 496 MB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/0.5075, allocations: 6.893 MB / 0.4911 GB, free: 3.266 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/0.5076, allocations: 4 kB / 0.4911 GB, free: 3.262 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008845/0.5084, allocations: 175.7 kB / 0.4913 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0049/0.5134, allocations: 1.441 MB / 0.4927 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001939/0.5136, allocations: 35.98 kB / 0.4927 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/0.5239, allocations: 7.918 MB / 0.5005 GB, free: 9.418 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00118/0.5251, allocations: 1.545 MB / 0.502 GB, free: 7.723 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009515/0.5347, allocations: 4.861 MB / 0.5067 GB, free: 2.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007876/0.5355, allocations: 290 kB / 0.507 GB, free: 2.516 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005465/0.5361, allocations: 31.92 kB / 0.507 GB, free: 2.484 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.5376, allocations: 107.8 kB / 0.5071 GB, free: 2.379 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003026/0.5379, allocations: 76.44 kB / 0.5072 GB, free: 2.305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.538, allocations: 46.23 kB / 0.5072 GB, free: 2.262 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003552/0.5416, allocations: 1.689 MB / 0.5089 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5416, allocations: 0 / 0.5089 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005436/0.5471, allocations: 0.7501 MB / 0.5096 GB, free: 15.81 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01057/0.5577, allocations: 5.504 MB / 0.515 GB, free: 10.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0085/0.5662, allocations: 4.676 MB / 0.5196 GB, free: 5.555 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.5662, allocations: 0 / 0.5196 GB, free: 5.555 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003545/0.5698, allocations: 1.733 MB / 0.5213 GB, free: 3.773 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/0.5723, allocations: 275.7 kB / 0.5215 GB, free: 3.508 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2206/0.793, allocations: 35.95 MB / 0.5566 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001695/0.7947, allocations: 2.284 MB / 0.5589 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002857/0.7976, allocations: 1.405 MB / 0.5602 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/0.7986, allocations: 1.115 MB / 0.5613 GB, free: 124.9 MB / 446.1 MB Notification: Performance of SimCode: time 5.01e-07/0.7986, allocations: 0 / 0.5613 GB, free: 124.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07285/0.8715, allocations: 51.21 MB / 0.6113 GB, free: 74.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/13.42, allocations: 0 / 0.6113 GB, free: 74.57 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches