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.001234/0.001234, allocations: 109.4 kB / 17.73 MB, free: 5.352 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.001187/0.001187, allocations: 180.1 kB / 18.66 MB, free: 4.426 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.373/1.373, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001682/0.001682, allocations: 51.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09047/0.09216, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2024/0.2946, allocations: 10.32 MB / 385 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007797/0.3025, allocations: 3.867 MB / 388.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.3047, allocations: 53.72 kB / 388.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004154/0.3088, allocations: 2.084 MB / 391 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005302/0.3142, allocations: 1.64 MB / 392.6 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00195/0.3161, allocations: 0.6884 MB / 393.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006095/0.3222, allocations: 3.383 MB / 396.7 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004601/0.3269, allocations: 2.698 MB / 399.4 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004339/0.3312, allocations: 1.269 MB / 400.7 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004007/0.3353, allocations: 1.763 MB / 402.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009131/0.3362, allocations: 266 kB / 402.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002914/0.3391, allocations: 1.11 MB / 403.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001884/0.341, allocations: 1.579 MB / 405.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002627/0.3437, allocations: 1.872 MB / 407.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009039/0.3527, allocations: 5.98 MB / 413.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.3528, allocations: 0 / 413.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3528, allocations: 0 / 413.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002273/0.353, allocations: 0 / 413.2 MB, free: 8.914 MB / 334.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.01064/0.3637, allocations: 4.258 MB / 417.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.3638, allocations: 12.03 kB / 417.5 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001142/0.3649, allocations: 0.6452 MB / 418.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007107/0.372, allocations: 1.886 MB / 420 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005337/0.3774, allocations: 2.382 MB / 422.4 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002021/0.3776, allocations: 201.2 kB / 422.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006722/0.3783, allocations: 275.8 kB / 422.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02079/0.3991, allocations: 9.973 MB / 432.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000166/0.3993, allocations: 39.67 kB / 432.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008865/0.4002, allocations: 139.9 kB / 433 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003708/0.4039, allocations: 1.852 MB / 434.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02048/0.4245, allocations: 8.536 MB / 443.4 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04927/0.4738, allocations: 36.76 MB / 480.2 MB, free: 4.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/0.484, allocations: 3.885 MB / 484.1 MB, free: 456 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00282/0.4868, allocations: 1.81 MB / 485.9 MB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01286/0.4997, allocations: 7.548 MB / 493.4 MB, free: 6.801 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.62e-05/0.4998, allocations: 43.56 kB / 493.5 MB, free: 6.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 5.761e-06/0.4998, allocations: 0 / 493.5 MB, free: 6.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05408/0.5539, allocations: 17.69 MB / 0.4992 GB, free: 4.953 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.975e-05/0.554, allocations: 141.5 kB / 0.4993 GB, free: 4.781 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005319/0.5594, allocations: 3.511 MB / 0.5027 GB, free: 1.27 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003464/0.5597, allocations: 53.7 kB / 0.5028 GB, free: 1.211 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002213/0.5619, allocations: 2.842 MB / 0.5056 GB, free: 14.34 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008959/0.5629, allocations: 0.6784 MB / 0.5062 GB, free: 13.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001599/0.5645, allocations: 1.12 MB / 0.5073 GB, free: 12.53 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.5646, allocations: 309.1 kB / 0.5076 GB, free: 12.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003077/0.5677, allocations: 1.939 MB / 0.5095 GB, free: 10.28 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005695/0.5734, allocations: 5.362 MB / 0.5147 GB, free: 3.199 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/0.5836, allocations: 7.92 MB / 0.5225 GB, free: 9.578 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.857e-05/0.5837, allocations: 39.94 kB / 0.5225 GB, free: 9.539 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01684/0.6006, allocations: 8.168 MB / 0.5305 GB, free: 1.363 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001341/0.6008, allocations: 60.25 kB / 0.5305 GB, free: 1.305 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001835/0.6009, allocations: 124 kB / 0.5307 GB, free: 1.184 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004235/0.6052, allocations: 1.288 MB / 0.5319 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004239/0.6095, allocations: 1.255 MB / 0.5332 GB, free: 14.63 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.6195, allocations: 6.547 MB / 0.5395 GB, free: 7.945 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004622/0.6242, allocations: 299.7 kB / 0.5398 GB, free: 7.652 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/0.6254, allocations: 348 kB / 0.5402 GB, free: 7.312 MB / 478.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.00423/0.6296, allocations: 1.811 MB / 0.5419 GB, free: 5.488 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009121/0.6305, allocations: 325.8 kB / 0.5422 GB, free: 5.168 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00828/0.6388, allocations: 3.366 MB / 0.5455 GB, free: 1.785 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.213e-05/0.6389, allocations: 16 kB / 0.5455 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.015e-05/0.6389, allocations: 8 kB / 0.5456 GB, free: 1.762 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-05/0.6389, allocations: 11.97 kB / 0.5456 GB, free: 1.75 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2131/0.8521, allocations: 7.578 MB / 0.553 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.738e-05/0.8521, allocations: 1.609 kB / 0.553 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.8533, allocations: 241.5 kB / 0.5532 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003996/0.8573, allocations: 1.117 MB / 0.5543 GB, free: 149.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002106/0.8576, allocations: 32.25 kB / 0.5543 GB, free: 149.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008655/0.8662, allocations: 6.161 MB / 0.5603 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.8662, allocations: 6.062 kB / 0.5603 GB, free: 146.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009786/0.876, allocations: 5.728 MB / 0.5659 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/0.8775, allocations: 0.5864 MB / 0.5665 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003731/0.8779, allocations: 27 kB / 0.5665 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.8791, allocations: 89.16 kB / 0.5666 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/0.8795, allocations: 88.72 kB / 0.5667 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/0.8796, allocations: 53.45 kB / 0.5668 GB, free: 143.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003382/0.883, allocations: 2.164 MB / 0.5689 GB, free: 143.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.883, allocations: 1.781 kB / 0.5689 GB, free: 143.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005882/0.8889, allocations: 0.9094 MB / 0.5698 GB, free: 143 MB / 478.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.008518/0.8974, allocations: 6.378 MB / 0.576 GB, free: 140.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007094/0.9046, allocations: 4.791 MB / 0.5807 GB, free: 138.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.9046, allocations: 0 / 0.5807 GB, free: 138.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002015/0.9066, allocations: 1.545 MB / 0.5822 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.9091, allocations: 365.8 kB / 0.5825 GB, free: 138.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0524/0.9615, allocations: 41.31 MB / 0.6229 GB, free: 92.49 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002348/0.9639, allocations: 2.854 MB / 0.6256 GB, free: 89.61 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003199/0.9671, allocations: 1.706 MB / 0.6273 GB, free: 87.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001627/0.9688, allocations: 1.585 MB / 0.6289 GB, free: 86.32 MB / 478.1 MB Notification: Performance of SimCode: time 8.51e-07/0.9688, allocations: 0 / 0.6289 GB, free: 86.32 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/1.07, allocations: 60.35 MB / 0.6878 GB, free: 25.89 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.18/19.25, allocations: 19.8 kB / 0.6878 GB, free: 25.87 MB / 478.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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