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.001439/0.001439, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001732/0.001731, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.631/1.631, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.385/0.3865, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01229/0.3988, allocations: 10.24 MB / 419 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009852/0.4087, allocations: 3.885 MB / 422.9 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001492/0.4103, allocations: 63.81 kB / 423 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004408/0.4147, allocations: 2.063 MB / 425 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004112/0.4189, allocations: 1.607 MB / 426.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002085/0.4209, allocations: 0.694 MB / 427.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004379/0.4253, allocations: 3.396 MB / 430.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002779/0.4281, allocations: 2.682 MB / 433.4 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.4296, allocations: 1.246 MB / 434.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001936/0.4316, allocations: 1.752 MB / 436.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001122/0.4327, allocations: 260 kB / 436.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001857/0.4346, allocations: 1.112 MB / 437.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001985/0.4366, allocations: 1.562 MB / 439.3 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001658/0.4383, allocations: 1.844 MB / 441.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007683/0.446, allocations: 5.901 MB / 447.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.056e-06/0.446, allocations: 0 / 447.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.446, allocations: 7.938 kB / 447.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001766/0.4462, allocations: 0 / 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.01045/0.4567, allocations: 4.114 MB / 451.2 MB, free: 6.855 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.259e-05/0.4567, allocations: 16.02 kB / 451.2 MB, free: 6.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008133/0.4576, allocations: 0.6374 MB / 451.8 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007422/0.465, allocations: 1.864 MB / 453.7 MB, free: 4.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004486/0.4695, allocations: 2.108 MB / 455.8 MB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.4696, allocations: 201.2 kB / 456 MB, free: 1.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000925/0.4706, allocations: 275.8 kB / 456.3 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/0.4895, allocations: 10 MB / 466.3 MB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.4897, allocations: 39.59 kB / 466.3 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001106/0.4908, allocations: 135.9 kB / 466.5 MB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003124/0.4939, allocations: 1.852 MB / 468.3 MB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01874/0.5127, allocations: 8.56 MB / 476.9 MB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05254/0.5653, allocations: 36.69 MB / 0.5015 GB, free: 6.684 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01159/0.5769, allocations: 3.908 MB / 0.5053 GB, free: 2.578 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002831/0.5798, allocations: 1.807 MB / 0.5071 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01486/0.5946, allocations: 7.622 MB / 0.5145 GB, free: 8.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.858e-05/0.5947, allocations: 51.56 kB / 0.5146 GB, free: 8.781 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 5.28e-06/0.5947, allocations: 0 / 0.5146 GB, free: 8.781 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05823/0.653, allocations: 17.55 MB / 0.5317 GB, free: 7.102 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/0.6531, allocations: 149.7 kB / 0.5319 GB, free: 6.926 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007241/0.6604, allocations: 3.469 MB / 0.5353 GB, free: 3.453 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002149/0.6606, allocations: 49.7 kB / 0.5353 GB, free: 3.398 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002745/0.6634, allocations: 2.736 MB / 0.538 GB, free: 0.625 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2817/0.9451, allocations: 0.6385 MB / 0.5386 GB, free: 126.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002279/0.9474, allocations: 1.112 MB / 0.5397 GB, free: 126.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.853e-05/0.9475, allocations: 305.4 kB / 0.54 GB, free: 126 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002866/0.9503, allocations: 1.959 MB / 0.5419 GB, free: 125.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003582/0.9539, allocations: 5.378 MB / 0.5471 GB, free: 120.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006398/0.9603, allocations: 7.941 MB / 0.5549 GB, free: 113.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.264e-05/0.9604, 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.01374/0.9742, allocations: 8.177 MB / 0.5629 GB, free: 109.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.368e-05/0.9743, allocations: 60 kB / 0.563 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.9744, allocations: 120 kB / 0.5631 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003633/0.978, allocations: 1.297 MB / 0.5644 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003741/0.9818, allocations: 1.259 MB / 0.5656 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008753/0.9906, allocations: 6.552 MB / 0.572 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0048/0.9954, allocations: 302.7 kB / 0.5723 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005003/0.9959, allocations: 340 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.002382/0.9983, allocations: 1.801 MB / 0.5744 GB, free: 98.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004799/0.9988, allocations: 315.4 kB / 0.5747 GB, free: 98.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006253/1.005, allocations: 3.377 MB / 0.578 GB, free: 94.82 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.811e-05/1.005, allocations: 20 kB / 0.578 GB, free: 94.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/1.005, allocations: 4 kB / 0.578 GB, free: 94.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/1.005, allocations: 7.969 kB / 0.578 GB, free: 94.79 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01397/1.019, allocations: 7.59 MB / 0.5854 GB, free: 87.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/1.019, allocations: 0 / 0.5854 GB, free: 87.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/1.02, allocations: 243.7 kB / 0.5856 GB, free: 86.97 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003439/1.024, allocations: 1.118 MB / 0.5867 GB, free: 85.85 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003335/1.024, allocations: 28 kB / 0.5867 GB, free: 85.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00686/1.031, allocations: 6.174 MB / 0.5928 GB, free: 79.56 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.296e-06/1.031, allocations: 3 kB / 0.5928 GB, free: 79.56 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008999/1.04, allocations: 5.748 MB / 0.5984 GB, free: 73.78 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000763/1.041, allocations: 349 kB / 0.5987 GB, free: 73.42 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002822/1.041, allocations: 20 kB / 0.5987 GB, free: 73.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/1.043, allocations: 95.88 kB / 0.5988 GB, free: 73.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/1.043, allocations: 100.8 kB / 0.5989 GB, free: 73.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/1.043, allocations: 47.66 kB / 0.599 GB, free: 73.16 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003213/1.046, allocations: 2.146 MB / 0.6011 GB, free: 71.03 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/1.046, allocations: 0 / 0.6011 GB, free: 71.03 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004402/1.051, allocations: 0.8932 MB / 0.6019 GB, free: 70.14 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.008356/1.059, allocations: 6.386 MB / 0.6082 GB, free: 63.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006789/1.066, allocations: 4.817 MB / 0.6129 GB, free: 58.94 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/1.066, allocations: 0 / 0.6129 GB, free: 58.94 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/1.068, allocations: 1.546 MB / 0.6144 GB, free: 57.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/1.07, allocations: 357 kB / 0.6147 GB, free: 57.03 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05094/1.121, allocations: 41.14 MB / 0.6549 GB, free: 10.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002975/1.124, allocations: 2.843 MB / 0.6577 GB, free: 7.734 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003639/1.128, allocations: 1.707 MB / 0.6594 GB, free: 6.023 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/1.129, allocations: 1.585 MB / 0.6609 GB, free: 4.438 MB / 462.1 MB Notification: Performance of SimCode: time 9.448e-06/1.129, allocations: 0 / 0.6609 GB, free: 4.438 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1186/1.248, allocations: 61.03 MB / 0.7205 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/20.22, allocations: 7.031 kB / 0.7205 GB, free: 7.801 MB / 0.5137 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