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.001493/0.001493, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001757/0.001757, allocations: 187 kB / 18.66 MB, free: 4.414 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.272/1.272, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001138/0.001138, allocations: 55.94 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07164/0.07279, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.155/0.2278, allocations: 10.32 MB / 385 MB, free: 7.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005969/0.2338, allocations: 3.862 MB / 388.8 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.2349, allocations: 56.66 kB / 388.9 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003248/0.2381, allocations: 2.081 MB / 391 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00349/0.2416, allocations: 1.641 MB / 392.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.2431, allocations: 0.6871 MB / 393.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004294/0.2474, allocations: 3.39 MB / 396.7 MB, free: 2.273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002851/0.2503, allocations: 2.703 MB / 399.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.2519, allocations: 1.263 MB / 400.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.2538, allocations: 1.772 MB / 402.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004312/0.2543, allocations: 262.7 kB / 402.7 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/0.2561, allocations: 1.102 MB / 403.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001229/0.2573, allocations: 1.592 MB / 405.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001598/0.2589, allocations: 1.869 MB / 407.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005378/0.2643, allocations: 5.961 MB / 413.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.2643, allocations: 4 kB / 413.2 MB, free: 8.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2643, allocations: 0 / 413.2 MB, free: 8.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.823e-05/0.2644, allocations: 1.375 kB / 413.2 MB, free: 8.73 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.006654/0.2711, allocations: 4.153 MB / 417.4 MB, free: 5.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.2711, allocations: 8.031 kB / 417.4 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006438/0.2718, allocations: 0.6452 MB / 418 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006001/0.2778, allocations: 1.864 MB / 419.9 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00436/0.2821, allocations: 2.358 MB / 422.2 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001419/0.2823, allocations: 209.2 kB / 422.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004523/0.2828, allocations: 271.8 kB / 422.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/0.2982, allocations: 9.977 MB / 432.7 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.863e-05/0.2983, allocations: 39.59 kB / 432.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003209/0.2986, allocations: 131.9 kB / 432.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002676/0.3013, allocations: 1.86 MB / 434.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01571/0.317, allocations: 8.54 MB / 443.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03638/0.3535, allocations: 36.7 MB / 480 MB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008594/0.3621, allocations: 3.877 MB / 483.8 MB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002124/0.3642, allocations: 1.819 MB / 485.6 MB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.3748, allocations: 7.523 MB / 493.2 MB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.3748, allocations: 51.56 kB / 493.2 MB, free: 6.844 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.098e-06/0.3749, allocations: 0 / 493.2 MB, free: 6.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.04588/0.4207, allocations: 17.49 MB / 0.4987 GB, free: 5.23 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.361e-05/0.4209, allocations: 149.5 kB / 0.4989 GB, free: 5.051 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004193/0.4251, allocations: 3.498 MB / 0.5023 GB, free: 1.551 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002845/0.4254, allocations: 45.7 kB / 0.5023 GB, free: 1.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001536/0.4269, allocations: 2.74 MB / 0.505 GB, free: 14.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006193/0.4275, allocations: 0.648 MB / 0.5057 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001266/0.4288, allocations: 1.107 MB / 0.5067 GB, free: 12.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.36e-05/0.4289, allocations: 305.1 kB / 0.507 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002648/0.4316, allocations: 1.947 MB / 0.5089 GB, free: 10.69 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004353/0.4359, allocations: 5.358 MB / 0.5142 GB, free: 3.617 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007672/0.4436, allocations: 7.924 MB / 0.5219 GB, free: 9.992 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.814e-05/0.4437, allocations: 40.22 kB / 0.5219 GB, free: 9.953 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01265/0.4563, allocations: 8.147 MB / 0.5299 GB, free: 1.793 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.48e-05/0.4564, allocations: 60.03 kB / 0.5299 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.184e-05/0.4565, allocations: 123.9 kB / 0.5301 GB, free: 1.613 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00369/0.4602, allocations: 1.3 MB / 0.5313 GB, free: 320 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003391/0.4636, allocations: 1.252 MB / 0.5326 GB, free: 15.06 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008274/0.4719, allocations: 6.55 MB / 0.539 GB, free: 8.367 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00417/0.4761, allocations: 299.6 kB / 0.5392 GB, free: 8.074 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009506/0.4771, allocations: 340 kB / 0.5396 GB, free: 7.742 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.00338/0.4805, allocations: 1.814 MB / 0.5413 GB, free: 5.914 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007235/0.4812, allocations: 304 kB / 0.5416 GB, free: 5.613 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007043/0.4883, allocations: 3.366 MB / 0.5449 GB, free: 2.23 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.49e-05/0.4883, allocations: 20 kB / 0.5449 GB, free: 2.211 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.4883, allocations: 8 kB / 0.5449 GB, free: 2.203 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.258e-05/0.4884, allocations: 7.969 kB / 0.5449 GB, free: 2.195 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1652/0.6536, allocations: 7.571 MB / 0.5523 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.6536, allocations: 1.125 kB / 0.5523 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.6547, allocations: 239.5 kB / 0.5526 GB, free: 149.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003531/0.6582, allocations: 1.128 MB / 0.5537 GB, free: 149.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/0.6584, allocations: 24.69 kB / 0.5537 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007528/0.6659, allocations: 6.166 MB / 0.5597 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.666, allocations: 1.312 kB / 0.5597 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008489/0.6745, allocations: 5.711 MB / 0.5653 GB, free: 144.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/0.6759, allocations: 0.5765 MB / 0.5659 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002882/0.6762, allocations: 22.78 kB / 0.5659 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.6774, allocations: 91.23 kB / 0.566 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002397/0.6776, allocations: 88.48 kB / 0.5661 GB, free: 144.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.6777, allocations: 49.84 kB / 0.5661 GB, free: 144 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002919/0.6806, allocations: 2.171 MB / 0.5682 GB, free: 143.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6807, allocations: 0 / 0.5682 GB, free: 143.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003618/0.6843, allocations: 0.905 MB / 0.5691 GB, free: 143.2 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.00818/0.6925, allocations: 6.365 MB / 0.5753 GB, free: 140.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006069/0.6986, allocations: 4.772 MB / 0.58 GB, free: 139.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.6986, allocations: 7.844 kB / 0.58 GB, free: 139.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00182/0.7004, allocations: 1.534 MB / 0.5815 GB, free: 138.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/0.7025, allocations: 363.1 kB / 0.5818 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03944/0.742, allocations: 41.17 MB / 0.622 GB, free: 92.96 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001974/0.744, allocations: 2.861 MB / 0.6248 GB, free: 90.08 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002848/0.7469, allocations: 1.702 MB / 0.6265 GB, free: 88.38 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001379/0.7482, allocations: 1.589 MB / 0.628 GB, free: 86.79 MB / 478.1 MB Notification: Performance of SimCode: time 1.031e-06/0.7483, allocations: 4 kB / 0.628 GB, free: 86.79 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.352/2.1, allocations: 61.37 MB / 0.688 GB, free: 25.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.54/22.64, allocations: 11.86 kB / 0.688 GB, free: 25.32 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