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.001266/0.001266, allocations: 104.3 kB / 17.16 MB, free: 6.316 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.001266/0.001266, allocations: 190 kB / 18.07 MB, free: 5.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.299/1.299, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001087/0.001088, allocations: 55.92 kB / 280.1 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07891/0.08001, allocations: 46.62 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02826/0.1083, allocations: 34.77 MB / 361.5 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01463/0.123, allocations: 7.919 MB / 369.4 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003678/0.1267, allocations: 143.6 kB / 369.5 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003671/0.1304, allocations: 2.057 MB / 371.6 MB, free: 7.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003464/0.1339, allocations: 1.518 MB / 373.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001245/0.1351, allocations: 0.6358 MB / 373.7 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004192/0.1393, allocations: 4.793 MB / 378.5 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1532/0.2925, allocations: 2.676 MB / 381.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.2944, allocations: 1.133 MB / 382.3 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002171/0.2966, allocations: 1.888 MB / 384.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004809/0.2971, allocations: 194.1 kB / 384.4 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00199/0.2991, allocations: 1.115 MB / 385.5 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001267/0.3004, allocations: 1.539 MB / 387.1 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001457/0.3019, allocations: 1.818 MB / 388.9 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005251/0.3071, allocations: 5.693 MB / 394.6 MB, free: 8.316 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.3072, allocations: 1.812 kB / 394.6 MB, free: 8.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3072, allocations: 4 kB / 394.6 MB, free: 8.312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001293/0.3073, allocations: 1.75 kB / 394.6 MB, free: 8.312 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.008246/0.3156, allocations: 4.147 MB / 398.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3156, allocations: 13.53 kB / 398.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008157/0.3164, allocations: 0.6422 MB / 399.4 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006196/0.3226, allocations: 1.866 MB / 401.3 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004685/0.3273, allocations: 2.336 MB / 403.6 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.3275, allocations: 209.8 kB / 403.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006863/0.3282, allocations: 270.8 kB / 404.1 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01581/0.344, allocations: 9.974 MB / 414 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.346e-05/0.3442, allocations: 40.8 kB / 414.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000395/0.3446, allocations: 137.8 kB / 414.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002712/0.3473, allocations: 1.857 MB / 416.1 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01719/0.3645, allocations: 8.53 MB / 424.6 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04143/0.406, allocations: 36.86 MB / 461.5 MB, free: 1.363 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009475/0.4155, allocations: 3.877 MB / 465.3 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002388/0.4179, allocations: 1.808 MB / 467.2 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01041/0.4283, allocations: 7.531 MB / 474.7 MB, free: 3.734 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.4284, allocations: 62.67 kB / 474.7 MB, free: 3.668 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 6.251e-06/0.4284, allocations: 3.984 kB / 474.8 MB, free: 3.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04994/0.4784, allocations: 17.47 MB / 492.2 MB, free: 2.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.812e-05/0.4785, allocations: 148.6 kB / 492.4 MB, free: 1.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004653/0.4831, allocations: 3.505 MB / 495.9 MB, free: 14.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002609/0.4834, allocations: 52.36 kB / 495.9 MB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00161/0.485, allocations: 2.734 MB / 498.7 MB, free: 11.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006102/0.4857, allocations: 0.6457 MB / 499.3 MB, free: 11.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00135/0.487, allocations: 1.113 MB / 0.4887 GB, free: 9.887 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.204e-05/0.4871, allocations: 301.1 kB / 0.489 GB, free: 9.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002677/0.4898, allocations: 1.943 MB / 0.4909 GB, free: 7.641 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004667/0.4945, allocations: 5.368 MB / 0.4961 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008446/0.5029, allocations: 7.918 MB / 0.5038 GB, free: 7.504 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.056e-05/0.5031, allocations: 39.94 kB / 0.5039 GB, free: 7.465 MB / 430.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01591/0.519, allocations: 8.144 MB / 0.5118 GB, free: 48 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.605e-05/0.5191, allocations: 56.05 kB / 0.5119 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001303/0.5192, allocations: 120 kB / 0.512 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004053/0.5233, allocations: 1.297 MB / 0.5133 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004037/0.5274, allocations: 1.258 MB / 0.5145 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008482/0.5359, allocations: 6.11 MB / 0.5205 GB, free: 7.242 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004096/0.54, allocations: 295.1 kB / 0.5207 GB, free: 6.957 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006406/0.5406, allocations: 344 kB / 0.5211 GB, free: 6.621 MB / 446.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.002789/0.5434, allocations: 1.812 MB / 0.5228 GB, free: 4.902 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005012/0.544, allocations: 311.9 kB / 0.5231 GB, free: 4.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006847/0.5508, allocations: 3.361 MB / 0.5264 GB, free: 1.223 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.882e-05/0.5509, allocations: 20 kB / 0.5264 GB, free: 1.203 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.5509, allocations: 11.94 kB / 0.5265 GB, free: 1.191 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.5509, allocations: 7.969 kB / 0.5265 GB, free: 1.184 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/0.5646, allocations: 7.61 MB / 0.5339 GB, free: 9.512 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.5646, allocations: 0 / 0.5339 GB, free: 9.512 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.5657, allocations: 239.7 kB / 0.5341 GB, free: 9.277 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003727/0.5695, allocations: 1.128 MB / 0.5352 GB, free: 8.145 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001962/0.5697, allocations: 27.98 kB / 0.5353 GB, free: 8.117 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008178/0.5779, allocations: 5.717 MB / 0.5408 GB, free: 2.27 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5779, allocations: 7.969 kB / 0.5408 GB, free: 2.262 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1617/0.7396, allocations: 5.699 MB / 0.5464 GB, free: 177.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001661/0.7413, allocations: 0.5697 MB / 0.547 GB, free: 177.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007975/0.7421, allocations: 30.31 kB / 0.547 GB, free: 177.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/0.7435, allocations: 90.34 kB / 0.5471 GB, free: 177.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003171/0.7439, allocations: 86.59 kB / 0.5472 GB, free: 177.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/0.744, allocations: 49.17 kB / 0.5472 GB, free: 177.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003851/0.7479, allocations: 2.164 MB / 0.5493 GB, free: 177.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.7479, allocations: 1.188 kB / 0.5493 GB, free: 177.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004247/0.7521, allocations: 0.911 MB / 0.5502 GB, free: 177.2 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.00956/0.7617, allocations: 6.357 MB / 0.5564 GB, free: 174.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006535/0.7683, allocations: 4.771 MB / 0.5611 GB, free: 173.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.7683, allocations: 3.688 kB / 0.5611 GB, free: 173.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.7701, allocations: 1.526 MB / 0.5626 GB, free: 172.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/0.7722, allocations: 348.4 kB / 0.5629 GB, free: 172.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05119/0.8234, allocations: 47.08 MB / 0.6089 GB, free: 125.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002154/0.8256, allocations: 2.855 MB / 0.6117 GB, free: 122.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003263/0.8289, allocations: 1.719 MB / 0.6134 GB, free: 120.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001459/0.8303, allocations: 1.593 MB / 0.6149 GB, free: 119.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8303, allocations: 0 / 0.6149 GB, free: 119.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06653/0.8969, allocations: 62.34 MB / 0.6758 GB, free: 56.89 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001279/0.897, allocations: 263 kB / 0.676 GB, free: 56.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.459/4.356, allocations: 0 / 0.676 GB, free: 56.62 MB / 462.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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches