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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 108 kB / 18.4 MB, free: 4.699 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.00188/0.00188, allocations: 186.3 kB / 19.33 MB, free: 3.777 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.353/1.353, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001196/0.001196, allocations: 47.94 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.08646, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1779/0.2644, allocations: 10.32 MB / 386.1 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007202/0.2716, allocations: 3.862 MB / 390 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001418/0.2731, allocations: 53.34 kB / 390.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00364/0.2768, allocations: 2.086 MB / 392.1 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004179/0.281, allocations: 1.638 MB / 393.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001642/0.2826, allocations: 0.6891 MB / 394.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005262/0.2879, allocations: 3.386 MB / 397.9 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003065/0.291, allocations: 2.699 MB / 400.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001999/0.293, allocations: 1.275 MB / 401.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002153/0.2952, allocations: 1.766 MB / 403.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005271/0.2957, allocations: 262.2 kB / 403.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002064/0.2978, allocations: 1.11 MB / 405 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001432/0.2992, allocations: 1.57 MB / 406.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001813/0.301, allocations: 1.87 MB / 408.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007749/0.3088, allocations: 5.937 MB / 414.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.858e-06/0.3089, allocations: 0 / 414.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3089, allocations: 0 / 414.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002448/0.3091, allocations: 4 kB / 414.3 MB, free: 8.656 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.01117/0.3203, allocations: 4.138 MB / 418.5 MB, free: 4.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/0.3204, allocations: 12.03 kB / 418.5 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006718/0.3271, allocations: 1.852 MB / 420.3 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003818/0.3309, allocations: 1.96 MB / 422.3 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001586/0.3311, allocations: 205.2 kB / 422.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005057/0.3316, allocations: 275.8 kB / 422.8 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01788/0.3495, allocations: 9.977 MB / 432.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-05/0.3497, allocations: 43.59 kB / 432.8 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003656/0.35, allocations: 131.9 kB / 432.9 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003024/0.3531, allocations: 1.852 MB / 434.8 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01709/0.3702, allocations: 8.54 MB / 443.3 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04246/0.4127, allocations: 36.7 MB / 480 MB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009573/0.4223, allocations: 3.885 MB / 483.9 MB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002424/0.4248, allocations: 1.806 MB / 485.7 MB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01183/0.4366, allocations: 7.516 MB / 493.2 MB, free: 7.734 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.342e-05/0.4367, allocations: 59.44 kB / 493.3 MB, free: 7.668 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 5.59e-06/0.4367, allocations: 0 / 493.3 MB, free: 7.668 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05482/0.4916, allocations: 17.46 MB / 0.4988 GB, free: 6.086 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.245e-05/0.4917, allocations: 141.5 kB / 0.4989 GB, free: 5.914 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006797/0.4985, allocations: 3.489 MB / 0.5023 GB, free: 2.422 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004089/0.499, allocations: 45.7 kB / 0.5024 GB, free: 2.371 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002487/0.5015, allocations: 2.739 MB / 0.505 GB, free: 15.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001052/0.5025, allocations: 0.6403 MB / 0.5057 GB, free: 14.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002827/0.5054, allocations: 1.123 MB / 0.5067 GB, free: 13.81 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.5055, allocations: 301.1 kB / 0.507 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003557/0.5091, allocations: 1.951 MB / 0.5089 GB, free: 11.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005865/0.5149, allocations: 5.377 MB / 0.5142 GB, free: 4.465 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009503/0.5245, allocations: 7.932 MB / 0.5219 GB, free: 10.83 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.982e-05/0.5246, allocations: 36 kB / 0.522 GB, free: 10.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01734/0.542, allocations: 8.174 MB / 0.53 GB, free: 2.609 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000135/0.5421, allocations: 56.19 kB / 0.53 GB, free: 2.555 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001862/0.5423, allocations: 120 kB / 0.5301 GB, free: 2.438 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004264/0.5466, allocations: 1.304 MB / 0.5314 GB, free: 1.129 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00459/0.5512, allocations: 1.263 MB / 0.5326 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009543/0.5608, allocations: 6.539 MB / 0.539 GB, free: 9.184 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00501/0.5659, allocations: 295.6 kB / 0.5393 GB, free: 8.895 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001524/0.5674, allocations: 340 kB / 0.5396 GB, free: 8.562 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 (685): * Single equations (assignments): 681 * 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.00533/0.5727, allocations: 1.822 MB / 0.5414 GB, free: 6.727 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008766/0.5736, allocations: 304.1 kB / 0.5417 GB, free: 6.426 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007954/0.5816, allocations: 3.365 MB / 0.545 GB, free: 3.043 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.49e-05/0.5817, allocations: 23.98 kB / 0.545 GB, free: 3.02 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/0.5817, allocations: 4 kB / 0.545 GB, free: 3.016 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.5817, allocations: 7.969 kB / 0.545 GB, free: 3.008 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2815/0.8632, allocations: 7.571 MB / 0.5524 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.397e-05/0.8633, allocations: 2.797 kB / 0.5524 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/0.8647, allocations: 241.1 kB / 0.5526 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004353/0.869, allocations: 1.117 MB / 0.5537 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003795/0.8695, allocations: 31.34 kB / 0.5538 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009106/0.8786, allocations: 6.17 MB / 0.5598 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.8786, allocations: 1.703 kB / 0.5598 GB, free: 145.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01134/0.89, allocations: 5.708 MB / 0.5654 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001837/0.8919, allocations: 0.5722 MB / 0.5659 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000456/0.8923, allocations: 26.97 kB / 0.5659 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.8937, allocations: 91.75 kB / 0.566 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003149/0.894, allocations: 88.61 kB / 0.5661 GB, free: 143.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/0.8941, allocations: 45.95 kB / 0.5662 GB, free: 143.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004884/0.899, allocations: 2.165 MB / 0.5683 GB, free: 142.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.8991, allocations: 0 / 0.5683 GB, free: 142.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007699/0.9068, allocations: 0.9115 MB / 0.5692 GB, free: 142.6 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.0006883/0.9075, allocations: 169.3 kB / 0.5693 GB, free: 142.4 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008068/0.9156, allocations: 4.795 MB / 0.574 GB, free: 140.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.9156, allocations: 0 / 0.574 GB, free: 140.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002288/0.9179, allocations: 1.53 MB / 0.5755 GB, free: 140.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002695/0.9207, allocations: 371 kB / 0.5759 GB, free: 140 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01493/0.9356, allocations: 8.398 MB / 0.5841 GB, free: 135.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002927/0.9386, allocations: 2.845 MB / 0.5868 GB, free: 133.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001142/0.9398, allocations: 266.7 kB / 0.5871 GB, free: 133.4 MB / 478.1 MB Notification: Performance of SimCode: time 7.82e-07/0.9398, allocations: 0 / 0.5871 GB, free: 133.4 MB / 478.1 MB Notification: Performance of Templates: time 0.08372/1.024, allocations: 65.78 MB / 0.6513 GB, free: 67.81 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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