Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001249/0.001249, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001533/0.001533, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 57.94 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08443/0.08556, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.009862/0.09545, allocations: 10.26 MB / 367.8 MB, free: 3.703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1637/0.2591, allocations: 3.876 MB / 371.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.2605, allocations: 53.56 kB / 371.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003232/0.2637, allocations: 2.069 MB / 373.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003004/0.2668, allocations: 1.61 MB / 375.4 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001202/0.268, allocations: 0.6908 MB / 376.1 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003604/0.2716, allocations: 3.387 MB / 379.5 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002479/0.2741, allocations: 2.689 MB / 382.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001466/0.2756, allocations: 1.247 MB / 383.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001572/0.2771, allocations: 1.756 MB / 385.2 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000421/0.2776, allocations: 262.2 kB / 385.5 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001807/0.2794, allocations: 1.105 MB / 386.6 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001183/0.2806, allocations: 1.553 MB / 388.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001299/0.2819, allocations: 1.85 MB / 390 MB, free: 4.672 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004448/0.2863, allocations: 5.686 MB / 395.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2864, allocations: 0 / 395.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2864, allocations: 0 / 395.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.786e-05/0.2865, allocations: 0 / 395.7 MB, free: 0.9531 MB / 302.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.006493/0.293, allocations: 4.117 MB / 399.8 MB, free: 14.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.293, allocations: 8.406 kB / 399.8 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006489/0.2937, allocations: 0.6406 MB / 400.4 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006192/0.2999, allocations: 1.864 MB / 402.3 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003122/0.303, allocations: 2.069 MB / 404.4 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.3031, allocations: 208.4 kB / 404.6 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004085/0.3036, allocations: 274.6 kB / 404.8 MB, free: 9.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01579/0.3194, allocations: 9.999 MB / 414.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.98e-05/0.3195, allocations: 39.59 kB / 414.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003523/0.3198, allocations: 135.2 kB / 415 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00277/0.3226, allocations: 1.856 MB / 416.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01612/0.3387, allocations: 8.559 MB / 425.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03604/0.3748, allocations: 36.84 MB / 462.3 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008703/0.3835, allocations: 3.922 MB / 466.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001982/0.3855, allocations: 1.812 MB / 468 MB, free: 8.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009124/0.3947, allocations: 7.609 MB / 475.6 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.3947, allocations: 67.36 kB / 475.7 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 3.647e-06/0.3948, allocations: 0 / 475.7 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04731/0.4421, allocations: 17.53 MB / 493.2 MB, free: 15.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.4422, allocations: 149.5 kB / 493.3 MB, free: 15.01 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003809/0.446, allocations: 3.473 MB / 496.8 MB, free: 11.53 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.4461, allocations: 49.7 kB / 496.9 MB, free: 11.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001391/0.4475, allocations: 2.732 MB / 499.6 MB, free: 8.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004703/0.448, allocations: 0.6438 MB / 0.4885 GB, free: 8.109 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001185/0.4492, allocations: 1.11 MB / 0.4896 GB, free: 6.992 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.796e-05/0.4493, allocations: 305.1 kB / 0.4899 GB, free: 6.691 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00253/0.4518, allocations: 1.963 MB / 0.4918 GB, free: 4.723 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004517/0.4563, allocations: 5.373 MB / 0.4971 GB, free: 13.63 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007963/0.4643, allocations: 7.94 MB / 0.5048 GB, free: 3.996 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.087e-05/0.4644, allocations: 35.94 kB / 0.5048 GB, free: 3.961 MB / 430.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01313/0.4775, allocations: 8.173 MB / 0.5128 GB, free: 11.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.1e-05/0.4776, allocations: 59.98 kB / 0.5129 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.189e-05/0.4777, allocations: 120 kB / 0.513 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003812/0.4815, allocations: 1.299 MB / 0.5143 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003229/0.4847, allocations: 1.263 MB / 0.5155 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008317/0.4931, allocations: 6.547 MB / 0.5219 GB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003112/0.4962, allocations: 315.4 kB / 0.5222 GB, free: 2.047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000355/0.4966, allocations: 340 kB / 0.5225 GB, free: 1.715 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.1516/0.6482, allocations: 1.803 MB / 0.5243 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006593/0.6489, allocations: 302 kB / 0.5246 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007641/0.6565, allocations: 3.393 MB / 0.5279 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.878e-05/0.6566, allocations: 19.28 kB / 0.5279 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.6566, allocations: 3.875 kB / 0.5279 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.6566, allocations: 9.156 kB / 0.5279 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/0.6711, allocations: 7.622 MB / 0.5354 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.6712, allocations: 1.062 kB / 0.5354 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.6723, allocations: 244.4 kB / 0.5356 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003595/0.6759, allocations: 1.122 MB / 0.5367 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002149/0.6762, allocations: 27.56 kB / 0.5367 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008383/0.6846, allocations: 6.176 MB / 0.5427 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.6846, allocations: 2.188 kB / 0.5427 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008895/0.6935, allocations: 5.755 MB / 0.5484 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.6946, allocations: 345 kB / 0.5487 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003384/0.695, allocations: 25.12 kB / 0.5487 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.6962, allocations: 96.03 kB / 0.5488 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002944/0.6965, allocations: 90.83 kB / 0.5489 GB, free: 133.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.6967, allocations: 41.97 kB / 0.5489 GB, free: 133.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002945/0.6996, allocations: 2.155 MB / 0.551 GB, free: 133 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6996, allocations: 0 / 0.551 GB, free: 133 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004484/0.7041, allocations: 0.8949 MB / 0.5519 GB, free: 132.9 MB / 446.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.008674/0.7128, allocations: 6.388 MB / 0.5581 GB, free: 129.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007581/0.7204, allocations: 5.559 MB / 0.5636 GB, free: 124.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.7204, allocations: 0 / 0.5636 GB, free: 124.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.7223, allocations: 1.547 MB / 0.5651 GB, free: 122.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.7243, allocations: 364.5 kB / 0.5654 GB, free: 122.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04718/0.7715, allocations: 45.38 MB / 0.6098 GB, free: 70.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002843/0.7743, allocations: 2.848 MB / 0.6125 GB, free: 67.37 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003167/0.7775, allocations: 1.696 MB / 0.6142 GB, free: 65.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001391/0.7789, allocations: 1.585 MB / 0.6157 GB, free: 64.09 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.7789, allocations: 0 / 0.6157 GB, free: 64.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.007/3.786, allocations: 63.43 MB / 0.6777 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.75/17.54, allocations: 11.95 kB / 0.6777 GB, free: 0.9609 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches