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.001081/0.001081, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001232/0.001232, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2905/0.2918, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01107/0.3029, allocations: 10.25 MB / 419 MB, free: 7.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008703/0.3116, allocations: 3.893 MB / 422.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001813/0.3135, allocations: 55.88 kB / 422.9 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003858/0.3174, allocations: 2.071 MB / 425 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004095/0.3215, allocations: 1.607 MB / 426.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001465/0.323, allocations: 0.6901 MB / 427.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004167/0.3272, allocations: 3.392 MB / 430.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003173/0.3304, allocations: 2.679 MB / 433.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002072/0.3325, allocations: 1.254 MB / 434.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002238/0.3347, allocations: 1.748 MB / 436.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005552/0.3353, allocations: 264 kB / 436.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002018/0.3373, allocations: 1.108 MB / 437.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001421/0.3388, allocations: 1.566 MB / 439.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002268/0.3411, allocations: 1.852 MB / 441.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007112/0.3482, allocations: 5.894 MB / 447.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3482, allocations: 0 / 447.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.3482, allocations: 0 / 447.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001618/0.3484, allocations: 3.938 kB / 447.1 MB, free: 11.04 MB / 366.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.008624/0.357, allocations: 4.122 MB / 451.2 MB, free: 6.852 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.3571, allocations: 12.03 kB / 451.2 MB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009459/0.3581, allocations: 0.6374 MB / 451.8 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006256/0.3643, allocations: 1.864 MB / 453.7 MB, free: 4.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004155/0.3685, allocations: 2.1 MB / 455.8 MB, free: 2.168 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001744/0.3687, allocations: 205.2 kB / 456 MB, free: 1.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006576/0.3694, allocations: 275.8 kB / 456.3 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01968/0.3891, allocations: 10 MB / 466.3 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.3892, allocations: 43.59 kB / 466.3 MB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004703/0.3897, allocations: 135.9 kB / 466.5 MB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002983/0.3927, allocations: 1.848 MB / 468.3 MB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01794/0.4107, allocations: 8.571 MB / 476.9 MB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04493/0.4556, allocations: 36.69 MB / 0.5015 GB, free: 6.68 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009517/0.4652, allocations: 3.907 MB / 0.5053 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0024/0.4676, allocations: 1.807 MB / 0.5071 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.4787, allocations: 7.614 MB / 0.5145 GB, free: 8.848 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.996e-05/0.4788, allocations: 55.5 kB / 0.5146 GB, free: 8.785 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.278e-06/0.4788, allocations: 0 / 0.5146 GB, free: 8.785 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05081/0.5296, allocations: 17.55 MB / 0.5317 GB, free: 7.109 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.757e-05/0.5298, allocations: 149.5 kB / 0.5319 GB, free: 6.934 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004897/0.5347, allocations: 3.473 MB / 0.5353 GB, free: 3.457 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003085/0.535, allocations: 49.69 kB / 0.5353 GB, free: 3.402 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002004/0.537, allocations: 2.728 MB / 0.538 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2408/0.7778, allocations: 0.645 MB / 0.5386 GB, free: 126.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002576/0.7804, allocations: 1.113 MB / 0.5397 GB, free: 126.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.959e-05/0.7805, allocations: 306 kB / 0.54 GB, free: 126 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003549/0.7841, allocations: 1.96 MB / 0.5419 GB, free: 125.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003663/0.7878, allocations: 5.374 MB / 0.5471 GB, free: 120.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006448/0.7942, allocations: 7.939 MB / 0.5549 GB, free: 113.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.287e-05/0.7943, allocations: 34.84 kB / 0.5549 GB, free: 113.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01288/0.8072, allocations: 8.175 MB / 0.5629 GB, free: 109.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.876e-05/0.8073, allocations: 60.78 kB / 0.563 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001262/0.8075, allocations: 124 kB / 0.5631 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003529/0.811, allocations: 1.298 MB / 0.5644 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003411/0.8144, allocations: 1.26 MB / 0.5656 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007064/0.8215, allocations: 6.549 MB / 0.572 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003977/0.8255, allocations: 302.6 kB / 0.5723 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005507/0.8261, allocations: 347.8 kB / 0.5726 GB, free: 100.1 MB / 462.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.002534/0.8286, allocations: 1.801 MB / 0.5744 GB, free: 98.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004849/0.8291, allocations: 304.6 kB / 0.5746 GB, free: 98.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006027/0.8352, allocations: 3.385 MB / 0.578 GB, free: 94.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.039e-05/0.8352, allocations: 20 kB / 0.578 GB, free: 94.79 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.8352, allocations: 4 kB / 0.578 GB, free: 94.78 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/0.8353, allocations: 13.05 kB / 0.578 GB, free: 94.77 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/0.8466, allocations: 7.582 MB / 0.5854 GB, free: 87.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.15e-05/0.8467, allocations: 4 kB / 0.5854 GB, free: 87.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.8477, allocations: 243.7 kB / 0.5856 GB, free: 86.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003241/0.851, allocations: 1.114 MB / 0.5867 GB, free: 85.83 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001216/0.8511, allocations: 28 kB / 0.5867 GB, free: 85.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006556/0.8577, allocations: 6.172 MB / 0.5928 GB, free: 79.55 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.8577, allocations: 7.312 kB / 0.5928 GB, free: 79.54 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007827/0.8655, allocations: 5.744 MB / 0.5984 GB, free: 73.77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007161/0.8663, allocations: 353 kB / 0.5987 GB, free: 73.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003447/0.8666, allocations: 28.88 kB / 0.5988 GB, free: 73.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.8678, allocations: 91.88 kB / 0.5988 GB, free: 73.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002293/0.8681, allocations: 96.75 kB / 0.5989 GB, free: 73.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.8682, allocations: 47.98 kB / 0.599 GB, free: 73.14 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002762/0.8709, allocations: 2.142 MB / 0.6011 GB, free: 71.01 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.8709, allocations: 0 / 0.6011 GB, free: 71.01 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00424/0.8752, allocations: 0.8893 MB / 0.6019 GB, free: 70.12 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.008223/0.8834, allocations: 6.395 MB / 0.6082 GB, free: 63.71 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006545/0.89, allocations: 4.812 MB / 0.6129 GB, free: 58.92 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.8901, allocations: 0 / 0.6129 GB, free: 58.92 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001854/0.8919, allocations: 1.554 MB / 0.6144 GB, free: 57.36 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/0.894, allocations: 358.6 kB / 0.6147 GB, free: 57.01 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05298/0.947, allocations: 41.13 MB / 0.6549 GB, free: 10.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002243/0.9493, allocations: 2.85 MB / 0.6577 GB, free: 7.715 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003267/0.9526, allocations: 1.703 MB / 0.6594 GB, free: 6.008 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/0.9543, allocations: 1.585 MB / 0.6609 GB, free: 4.422 MB / 462.1 MB Notification: Performance of SimCode: time 1.904e-06/0.9543, allocations: 0 / 0.6609 GB, free: 4.422 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6522/1.606, allocations: 61.03 MB / 0.7205 GB, free: 7.789 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.07/20.68, allocations: 7.453 kB / 0.7205 GB, free: 7.785 MB / 0.5138 GB (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