Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001894/0.001895, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.002401/0.002401, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.971/1.971, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002264, allocations: 55.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1235, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01915/0.1427, allocations: 10.32 MB / 337.7 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.155, allocations: 3.86 MB / 341.6 MB, free: 6.125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002455/0.1576, allocations: 55.81 kB / 341.6 MB, free: 6.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006626/0.1643, allocations: 2.079 MB / 343.7 MB, free: 3.984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006718/0.171, allocations: 1.646 MB / 345.3 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002781/0.1738, allocations: 0.694 MB / 346 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006958/0.1808, allocations: 3.381 MB / 349.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005197/0.186, allocations: 2.701 MB / 352.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00293/0.189, allocations: 1.269 MB / 353.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00379/0.1928, allocations: 1.76 MB / 355.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001043/0.1939, allocations: 263.9 kB / 355.4 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003698/0.1976, allocations: 1.112 MB / 356.5 MB, free: 7.078 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00291/0.2005, allocations: 1.57 MB / 358.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003829/0.2044, allocations: 1.879 MB / 360 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.2149, allocations: 5.736 MB / 365.7 MB, free: 13.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.215, allocations: 0 / 365.7 MB, free: 13.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.215, allocations: 4 kB / 365.7 MB, free: 13.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002358/0.2152, allocations: 4 kB / 365.7 MB, free: 13.85 MB / 318.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.01514/0.2304, allocations: 4.156 MB / 369.9 MB, free: 9.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.969e-05/0.2305, allocations: 12.03 kB / 369.9 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002052/0.2326, allocations: 0.6413 MB / 370.5 MB, free: 8.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01295/0.2455, allocations: 1.864 MB / 372.4 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007596/0.2532, allocations: 2.327 MB / 374.7 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002917/0.2535, allocations: 205.2 kB / 374.9 MB, free: 4.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00123/0.2548, allocations: 271.9 kB / 375.2 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2861/0.5409, allocations: 9.965 MB / 385.1 MB, free: 46.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002782/0.5412, allocations: 38.39 kB / 385.2 MB, free: 46.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001357/0.5426, allocations: 139.3 kB / 385.3 MB, free: 46.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005918/0.5485, allocations: 1.851 MB / 387.2 MB, free: 46.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02964/0.5782, allocations: 8.543 MB / 395.7 MB, free: 43.24 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06146/0.6397, allocations: 36.86 MB / 432.6 MB, free: 7.902 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01596/0.6558, allocations: 3.877 MB / 436.4 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003732/0.6595, allocations: 1.814 MB / 438.3 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01851/0.6781, allocations: 7.535 MB / 445.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.004e-05/0.6782, allocations: 47.5 kB / 445.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=150): time 7.604e-06/0.6782, allocations: 0 / 445.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=166): time 0.09759/0.7758, allocations: 17.49 MB / 463.3 MB, free: 8.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.776, allocations: 149.5 kB / 463.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009191/0.7852, allocations: 3.498 MB / 467 MB, free: 4.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004707/0.7857, allocations: 45.7 kB / 467 MB, free: 4.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003233/0.789, allocations: 2.744 MB / 469.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001273/0.7903, allocations: 0.6403 MB / 470.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003192/0.7935, allocations: 1.111 MB / 471.5 MB, free: 320 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.7937, allocations: 305.1 kB / 471.8 MB, free: 12 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005492/0.7992, allocations: 1.947 MB / 473.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009767/0.809, allocations: 5.369 MB / 479.1 MB, free: 6.973 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.017/0.8261, allocations: 7.918 MB / 487 MB, free: 13.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000183/0.8263, allocations: 36 kB / 487.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.03006/0.8564, allocations: 8.146 MB / 495.2 MB, free: 5.164 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001909/0.8566, allocations: 56 kB / 495.3 MB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000273/0.8569, allocations: 121.7 kB / 495.4 MB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00747/0.8644, allocations: 1.3 MB / 496.7 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007369/0.8718, allocations: 1.255 MB / 498 MB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01631/0.8882, allocations: 6.561 MB / 0.4927 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007896/0.8961, allocations: 295.6 kB / 0.493 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001517/0.8977, allocations: 340 kB / 0.4933 GB, free: 11.11 MB / 398.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.006714/0.9045, allocations: 1.818 MB / 0.4951 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/0.9059, allocations: 304.1 kB / 0.4954 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01386/0.9198, allocations: 3.361 MB / 0.4986 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.069e-05/0.92, allocations: 23.94 kB / 0.4987 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.312e-05/0.92, allocations: 4 kB / 0.4987 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.281e-05/0.9201, allocations: 7.969 kB / 0.4987 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02845/0.9486, allocations: 7.623 MB / 0.5061 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.381e-05/0.9486, allocations: 3.938 kB / 0.5061 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002201/0.9509, allocations: 239.7 kB / 0.5064 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006786/0.9577, allocations: 1.12 MB / 0.5074 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005826/0.9583, allocations: 27.98 kB / 0.5075 GB, free: 12.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01654/0.9749, allocations: 6.167 MB / 0.5135 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/0.975, allocations: 4.031 kB / 0.5135 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01866/0.9937, allocations: 5.713 MB / 0.5191 GB, free: 420 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002694/0.9964, allocations: 0.575 MB / 0.5196 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001266/0.9977, allocations: 28 kB / 0.5197 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002901/1.001, allocations: 91.88 kB / 0.5198 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005814/1.001, allocations: 88.88 kB / 0.5198 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002882/1.002, allocations: 40 kB / 0.5199 GB, free: 15.56 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006936/1.009, allocations: 2.166 MB / 0.522 GB, free: 13.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.92e-07/1.009, allocations: 4 kB / 0.522 GB, free: 13.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009393/1.018, allocations: 0.9127 MB / 0.5229 GB, free: 12.49 MB / 430.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.01956/1.038, allocations: 6.368 MB / 0.5291 GB, free: 6.098 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0182/1.056, allocations: 5.524 MB / 0.5345 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/1.056, allocations: 0 / 0.5345 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2714/1.327, allocations: 1.525 MB / 0.536 GB, free: 150.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005367/1.333, allocations: 364.1 kB / 0.5363 GB, free: 150.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1153/1.448, allocations: 45.48 MB / 0.5808 GB, free: 114.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006696/1.455, allocations: 2.859 MB / 0.5835 GB, free: 111.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.007677/1.463, allocations: 1.699 MB / 0.5852 GB, free: 110.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003841/1.467, allocations: 1.593 MB / 0.5868 GB, free: 108.6 MB / 430.1 MB Notification: Performance of SimCode: time 1.713e-06/1.467, allocations: 0 / 0.5868 GB, free: 108.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1648/1.631, allocations: 63.76 MB / 0.649 GB, free: 44.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.61/20.25, allocations: 15.88 kB / 0.649 GB, free: 44.66 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches