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.001441/0.001447, allocations: 113.3 kB / 17.28 MB, free: 6.312 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.00145/0.001451, allocations: 189.3 kB / 18.19 MB, free: 5.395 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.357/1.357, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.00111/0.00111, allocations: 54.17 kB / 280.3 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08274/0.08386, allocations: 46.62 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02981/0.1137, allocations: 34.78 MB / 361.7 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01589/0.1296, allocations: 7.818 MB / 369.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005575/0.1353, allocations: 147.6 kB / 369.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00405/0.1394, allocations: 1.987 MB / 371.6 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004062/0.1435, allocations: 1.53 MB / 373.1 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.145, allocations: 0.6514 MB / 373.8 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004408/0.1494, allocations: 3.42 MB / 377.2 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1609/0.3103, allocations: 2.84 MB / 380 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00212/0.3124, allocations: 1.286 MB / 381.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002516/0.315, allocations: 1.954 MB / 383.3 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006016/0.3156, allocations: 263.2 kB / 383.5 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002116/0.3177, allocations: 1.125 MB / 384.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001533/0.3193, allocations: 1.604 MB / 386.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.3208, allocations: 1.893 MB / 388.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005181/0.326, allocations: 5.789 MB / 394 MB, free: 9.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3261, allocations: 1.031 kB / 394 MB, free: 9.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3261, allocations: 0 / 394 MB, free: 9.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001345/0.3262, allocations: 1.969 kB / 394 MB, free: 9.207 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.007675/0.3339, allocations: 4.149 MB / 398.1 MB, free: 7.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3339, allocations: 9.625 kB / 398.1 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008125/0.3348, allocations: 0.6397 MB / 398.8 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00611/0.3409, allocations: 1.87 MB / 400.6 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003866/0.3448, allocations: 2.332 MB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.3449, allocations: 211.6 kB / 403.2 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006164/0.3455, allocations: 269.4 kB / 403.4 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01817/0.3637, allocations: 9.977 MB / 413.4 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/0.3639, allocations: 38.78 kB / 413.4 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004637/0.3644, allocations: 132.3 kB / 413.6 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002882/0.3673, allocations: 1.859 MB / 415.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01728/0.3846, allocations: 8.532 MB / 424 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0423/0.4269, allocations: 36.86 MB / 460.8 MB, free: 1.836 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009288/0.4362, allocations: 3.885 MB / 464.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00225/0.4385, allocations: 1.806 MB / 466.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01032/0.4489, allocations: 7.517 MB / 474 MB, free: 4.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/0.4489, allocations: 66.67 kB / 474.1 MB, free: 4.137 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 3.867e-06/0.4489, allocations: 0 / 474.1 MB, free: 4.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.05148/0.5004, allocations: 17.48 MB / 491.6 MB, free: 2.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.5005, allocations: 149.5 kB / 491.7 MB, free: 2.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005564/0.5061, allocations: 3.494 MB / 495.2 MB, free: 14.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002357/0.5064, allocations: 49.7 kB / 495.3 MB, free: 14.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001925/0.5083, allocations: 2.74 MB / 498 MB, free: 12.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007291/0.509, allocations: 0.6402 MB / 498.7 MB, free: 11.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001806/0.5109, allocations: 1.113 MB / 499.8 MB, free: 10.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.511, allocations: 304.3 kB / 0.4883 GB, free: 10.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003051/0.514, allocations: 1.947 MB / 0.4902 GB, free: 8.117 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005157/0.5192, allocations: 5.359 MB / 0.4955 GB, free: 1.102 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009115/0.5283, allocations: 7.915 MB / 0.5032 GB, free: 7.984 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-05/0.5284, allocations: 39.94 kB / 0.5032 GB, free: 7.945 MB / 430.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01638/0.5448, allocations: 8.154 MB / 0.5112 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.545, allocations: 56 kB / 0.5113 GB, free: 476 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001942/0.5452, allocations: 120 kB / 0.5114 GB, free: 356 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004021/0.5492, allocations: 1.304 MB / 0.5126 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003866/0.5531, allocations: 1.253 MB / 0.5139 GB, free: 13.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00905/0.5622, allocations: 6.549 MB / 0.5203 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004093/0.5663, allocations: 307.4 kB / 0.5206 GB, free: 6.973 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008891/0.5672, allocations: 342.6 kB / 0.5209 GB, free: 6.641 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.003572/0.5708, allocations: 1.808 MB / 0.5227 GB, free: 4.934 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000677/0.5715, allocations: 308.1 kB / 0.5229 GB, free: 4.629 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007358/0.5788, allocations: 3.368 MB / 0.5262 GB, free: 1.246 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.291e-05/0.5789, allocations: 20 kB / 0.5263 GB, free: 1.227 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/0.5789, allocations: 4 kB / 0.5263 GB, free: 1.223 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.5789, allocations: 7.969 kB / 0.5263 GB, free: 1.215 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/0.5944, allocations: 7.612 MB / 0.5337 GB, free: 9.543 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.752e-05/0.5945, allocations: 4 kB / 0.5337 GB, free: 9.539 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.5958, allocations: 235.7 kB / 0.5339 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003718/0.5995, allocations: 1.133 MB / 0.535 GB, free: 8.172 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002392/0.5998, allocations: 24 kB / 0.5351 GB, free: 8.148 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00845/0.6082, allocations: 6.173 MB / 0.5411 GB, free: 1.844 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.6083, allocations: 0 / 0.5411 GB, free: 1.844 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1559/0.7642, allocations: 5.701 MB / 0.5467 GB, free: 178.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/0.7657, allocations: 0.5715 MB / 0.5472 GB, free: 178.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003937/0.7661, allocations: 25.12 kB / 0.5472 GB, free: 178.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.7674, allocations: 92.09 kB / 0.5473 GB, free: 178.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003059/0.7677, allocations: 87.52 kB / 0.5474 GB, free: 178.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.7678, allocations: 47.48 kB / 0.5475 GB, free: 178.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003152/0.771, allocations: 2.166 MB / 0.5496 GB, free: 177.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.771, allocations: 0.8438 kB / 0.5496 GB, free: 177.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004006/0.775, allocations: 0.9083 MB / 0.5505 GB, free: 177.7 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.008893/0.7839, allocations: 6.366 MB / 0.5567 GB, free: 175.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007514/0.7914, allocations: 5.535 MB / 0.5621 GB, free: 173.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.7915, allocations: 0 / 0.5621 GB, free: 173.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001903/0.7934, allocations: 1.53 MB / 0.5636 GB, free: 173 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002041/0.7954, allocations: 360.3 kB / 0.5639 GB, free: 172.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05763/0.8531, allocations: 47.08 MB / 0.6099 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0025/0.8556, allocations: 2.867 MB / 0.6127 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003535/0.8592, allocations: 1.696 MB / 0.6144 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001964/0.8611, allocations: 1.593 MB / 0.6159 GB, free: 118.2 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.8612, allocations: 0 / 0.6159 GB, free: 118.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1243/0.9855, allocations: 63.65 MB / 0.6781 GB, free: 54.43 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002176/0.9857, allocations: 254.8 kB / 0.6783 GB, free: 54.17 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.617/4.602, allocations: 0 / 0.6783 GB, free: 54.17 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