Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00164/0.001639, allocations: 122.8 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.001868/0.001868, 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.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.89 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.259, allocations: 50.54 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01157/0.2706, allocations: 10.25 MB / 419 MB, free: 7.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008759/0.2794, allocations: 3.89 MB / 422.9 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002291/0.2817, allocations: 51.88 kB / 423 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004612/0.2864, allocations: 2.071 MB / 425 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004987/0.2914, allocations: 1.645 MB / 426.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.2933, allocations: 0.6901 MB / 427.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004651/0.2979, allocations: 3.389 MB / 430.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003423/0.3014, allocations: 2.688 MB / 433.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002183/0.3036, allocations: 1.246 MB / 434.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002433/0.3061, allocations: 1.752 MB / 436.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007701/0.3068, allocations: 264 kB / 436.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002179/0.309, allocations: 1.112 MB / 437.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001639/0.3107, allocations: 1.558 MB / 439.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002654/0.3134, allocations: 1.856 MB / 441.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006259/0.3196, allocations: 5.913 MB / 447.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3197, allocations: 4 kB / 447.1 MB, free: 10.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3197, allocations: 0 / 447.1 MB, free: 10.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001432/0.3198, allocations: 0 / 447.1 MB, free: 10.94 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.00725/0.3271, allocations: 4.232 MB / 451.4 MB, free: 6.637 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3272, allocations: 8.031 kB / 451.4 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007311/0.3279, allocations: 0.6413 MB / 452 MB, free: 5.977 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006575/0.3345, allocations: 1.882 MB / 453.9 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004457/0.339, allocations: 2.12 MB / 456 MB, free: 1.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.3391, allocations: 205.2 kB / 456.2 MB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006086/0.3398, allocations: 267.9 kB / 456.5 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0185/0.3583, allocations: 10 MB / 466.5 MB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-05/0.3584, allocations: 39.64 kB / 466.5 MB, free: 6.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003616/0.3588, allocations: 131.9 kB / 466.7 MB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002856/0.3616, allocations: 1.848 MB / 468.5 MB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01736/0.379, allocations: 8.575 MB / 477.1 MB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04275/0.4218, allocations: 36.76 MB / 0.5018 GB, free: 6.371 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009737/0.4316, allocations: 3.907 MB / 0.5056 GB, free: 2.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002493/0.4341, allocations: 1.815 MB / 0.5074 GB, free: 456 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01157/0.4457, allocations: 7.62 MB / 0.5148 GB, free: 8.527 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.89e-05/0.4458, allocations: 47.56 kB / 0.5149 GB, free: 8.473 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.759e-06/0.4458, allocations: 0 / 0.5149 GB, free: 8.473 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05108/0.4969, allocations: 17.75 MB / 0.5322 GB, free: 6.613 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.578e-05/0.497, allocations: 149.5 kB / 0.5323 GB, free: 6.438 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004584/0.5016, allocations: 3.474 MB / 0.5357 GB, free: 2.961 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002829/0.5019, allocations: 53.7 kB / 0.5358 GB, free: 2.902 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001639/0.5036, allocations: 2.842 MB / 0.5386 GB, free: 36 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2229/0.7265, allocations: 0.6643 MB / 0.5392 GB, free: 126.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003526/0.7301, allocations: 1.12 MB / 0.5403 GB, free: 126.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.676e-05/0.7302, allocations: 308 kB / 0.5406 GB, free: 126 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003934/0.7341, allocations: 1.96 MB / 0.5425 GB, free: 125.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004495/0.7386, allocations: 5.378 MB / 0.5478 GB, free: 120.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006881/0.7455, allocations: 7.931 MB / 0.5555 GB, free: 113.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.082e-05/0.7457, allocations: 41.59 kB / 0.5555 GB, free: 113.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01273/0.7584, allocations: 8.195 MB / 0.5636 GB, free: 108.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.8e-05/0.7585, allocations: 56.94 kB / 0.5636 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.7586, allocations: 123.5 kB / 0.5637 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003544/0.7622, allocations: 1.301 MB / 0.565 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003392/0.7656, allocations: 1.261 MB / 0.5662 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007167/0.7728, allocations: 6.554 MB / 0.5726 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004221/0.777, allocations: 305.7 kB / 0.5729 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004941/0.7775, allocations: 340 kB / 0.5732 GB, free: 99.77 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (681): * Single equations (assignments): 677 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002244/0.7798, allocations: 1.807 MB / 0.575 GB, free: 98.02 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004605/0.7802, allocations: 325.8 kB / 0.5753 GB, free: 97.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006026/0.7863, allocations: 3.381 MB / 0.5786 GB, free: 94.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.293e-05/0.7863, allocations: 20 kB / 0.5786 GB, free: 94.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.7863, allocations: 4 kB / 0.5786 GB, free: 94.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.7863, allocations: 7.969 kB / 0.5787 GB, free: 94.28 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/0.7984, allocations: 7.58 MB / 0.5861 GB, free: 86.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.878e-06/0.7984, allocations: 0.875 kB / 0.5861 GB, free: 86.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.7994, allocations: 243.7 kB / 0.5863 GB, free: 86.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003318/0.8028, allocations: 1.121 MB / 0.5874 GB, free: 85.32 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/0.8029, allocations: 31.83 kB / 0.5874 GB, free: 85.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006712/0.8096, allocations: 6.186 MB / 0.5935 GB, free: 78.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.8097, allocations: 3.938 kB / 0.5935 GB, free: 78.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008398/0.8181, allocations: 5.76 MB / 0.5991 GB, free: 73.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007932/0.8189, allocations: 366.3 kB / 0.5994 GB, free: 72.81 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000374/0.8193, allocations: 28 kB / 0.5995 GB, free: 72.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/0.8206, allocations: 88.77 kB / 0.5995 GB, free: 72.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002185/0.8208, allocations: 92.81 kB / 0.5996 GB, free: 72.61 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.8209, allocations: 43.98 kB / 0.5997 GB, free: 72.57 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002556/0.8235, allocations: 2.15 MB / 0.6018 GB, free: 70.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8235, allocations: 4 kB / 0.6018 GB, free: 70.42 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00373/0.8272, allocations: 0.8923 MB / 0.6026 GB, free: 69.54 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008234/0.8355, allocations: 6.397 MB / 0.6089 GB, free: 63.12 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00689/0.8424, allocations: 4.823 MB / 0.6136 GB, free: 58.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.8424, allocations: 0 / 0.6136 GB, free: 58.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001966/0.8444, allocations: 1.552 MB / 0.6151 GB, free: 56.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002151/0.8466, allocations: 365.9 kB / 0.6155 GB, free: 56.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05063/0.8972, allocations: 41.28 MB / 0.6558 GB, free: 9.852 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002279/0.8995, allocations: 2.851 MB / 0.6586 GB, free: 6.965 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003127/0.9027, allocations: 1.696 MB / 0.6602 GB, free: 5.266 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/0.9047, allocations: 1.587 MB / 0.6618 GB, free: 3.68 MB / 462.1 MB Notification: Performance of SimCode: time 8.41e-07/0.9047, allocations: 0 / 0.6618 GB, free: 3.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1022/1.007, allocations: 60.01 MB / 0.7204 GB, free: 8.062 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.71/19.72, allocations: 19.39 kB / 0.7204 GB, free: 8.051 MB / 0.5137 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches