Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001463/0.001462, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001865/0.001865, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.00138, allocations: 59.78 kB / 307.1 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1309, allocations: 50.52 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01666/0.1476, allocations: 11.98 MB / 369.6 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3149/0.4626, allocations: 4.206 MB / 373.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002611/0.4653, allocations: 68.53 kB / 373.8 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006473/0.4718, allocations: 2.738 MB / 376.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007056/0.4789, allocations: 1.938 MB / 378.5 MB, free: 8.695 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002311/0.4812, allocations: 0.8074 MB / 379.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007348/0.4886, allocations: 4.682 MB / 384 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004514/0.4931, allocations: 3.546 MB / 387.5 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003038/0.4962, allocations: 1.679 MB / 389.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002656/0.4988, allocations: 2.33 MB / 391.6 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007869/0.4996, allocations: 352 kB / 391.9 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00303/0.5027, allocations: 1.256 MB / 393.2 MB, free: 3.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002469/0.5052, allocations: 2.081 MB / 395.2 MB, free: 2.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003073/0.5082, allocations: 2.412 MB / 397.6 MB, free: 292 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01002/0.5183, allocations: 7.212 MB / 404.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.5183, allocations: 0 / 404.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.5183, allocations: 0 / 404.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002145/0.5185, allocations: 0 / 404.9 MB, free: 9.859 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01264/0.5312, allocations: 5.258 MB / 410.1 MB, free: 4.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.5313, allocations: 8.031 kB / 410.1 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001202/0.5325, allocations: 0.8019 MB / 410.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008437/0.5409, allocations: 2.197 MB / 413.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006308/0.5473, allocations: 2.882 MB / 416 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002124/0.5475, allocations: 276.6 kB / 416.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.5485, allocations: 429.2 kB / 416.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02525/0.5738, allocations: 12.27 MB / 429 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001412/0.574, allocations: 47.53 kB / 429 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004979/0.5745, allocations: 171.7 kB / 429.2 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003432/0.5779, allocations: 2.162 MB / 431.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02457/0.6025, allocations: 10.25 MB / 441.6 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06525/0.6678, allocations: 44.28 MB / 485.9 MB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01195/0.6798, allocations: 4.653 MB / 490.5 MB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002831/0.6827, allocations: 1.724 MB / 492.2 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01523/0.6979, allocations: 8.263 MB / 0.4888 GB, free: 8.102 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.127e-05/0.6981, allocations: 55.88 kB / 0.4888 GB, free: 8.039 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 5.901e-06/0.6981, allocations: 0 / 0.4888 GB, free: 8.039 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.04596/0.744, allocations: 16.09 MB / 0.5045 GB, free: 7.785 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001517/0.7456, allocations: 1.7 MB / 0.5062 GB, free: 5.906 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008021/0.7536, allocations: 4.199 MB / 0.5103 GB, free: 1.688 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000476/0.7542, allocations: 57.7 kB / 0.5104 GB, free: 1.625 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002865/0.757, allocations: 3.393 MB / 0.5137 GB, free: 14.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00126/0.7583, allocations: 0.8156 MB / 0.5145 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003302/0.7616, allocations: 1.34 MB / 0.5158 GB, free: 12.08 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.7618, allocations: 305.2 kB / 0.5161 GB, free: 11.78 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004092/0.7659, allocations: 2.246 MB / 0.5183 GB, free: 9.527 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007877/0.7738, allocations: 6.374 MB / 0.5245 GB, free: 1.105 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2674/1.041, allocations: 9.278 MB / 0.5335 GB, free: 128.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001707/1.042, allocations: 42.25 kB / 0.5336 GB, free: 128.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02223/1.064, allocations: 9.11 MB / 0.5425 GB, free: 125.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/1.064, allocations: 70.09 kB / 0.5425 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007795/1.072, allocations: 2.885 MB / 0.5454 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003612/1.075, allocations: 1.074 MB / 0.5464 GB, free: 124.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005493/1.081, allocations: 1.582 MB / 0.548 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00454/1.085, allocations: 4.681 MB / 0.5525 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005462/1.091, allocations: 422.1 kB / 0.5529 GB, free: 121.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005597/1.091, allocations: 419 kB / 0.5533 GB, free: 121.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (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],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002908/1.094, allocations: 2.214 MB / 0.5555 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005227/1.095, allocations: 385.6 kB / 0.5559 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005476/1.1, allocations: 3.306 MB / 0.5591 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004502/1.105, allocations: 2.79 MB / 0.5618 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/1.105, allocations: 0 / 0.5618 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/1.105, allocations: 11.77 kB / 0.5618 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01426/1.119, allocations: 10.37 MB / 0.572 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/1.119, allocations: 16 kB / 0.572 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/1.121, allocations: 376.2 kB / 0.5723 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002743/1.123, allocations: 0.9825 MB / 0.5733 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001404/1.124, allocations: 69.03 kB / 0.5733 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00384/1.127, allocations: 4.901 MB / 0.5781 GB, free: 104 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000669/1.128, allocations: 1.565 MB / 0.5797 GB, free: 102.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007193/1.135, allocations: 5.964 MB / 0.5855 GB, free: 96.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007482/1.136, allocations: 436.1 kB / 0.5859 GB, free: 95.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003616/1.136, allocations: 59.97 kB / 0.586 GB, free: 95.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/1.138, allocations: 151.8 kB / 0.5861 GB, free: 95.67 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002612/1.138, allocations: 176.4 kB / 0.5863 GB, free: 95.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001155/1.138, allocations: 71.98 kB / 0.5863 GB, free: 95.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002845/1.141, allocations: 2.605 MB / 0.5889 GB, free: 92.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.141, allocations: 0 / 0.5889 GB, free: 92.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004398/1.146, allocations: 1.111 MB / 0.59 GB, free: 91.71 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007374/1.153, allocations: 6.659 MB / 0.5965 GB, free: 84.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01021/1.163, allocations: 6.603 MB / 0.6029 GB, free: 78.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.116e-05/1.163, allocations: 4 kB / 0.6029 GB, free: 78.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003653/1.167, allocations: 2.213 MB / 0.6051 GB, free: 75.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003417/1.17, allocations: 0.5029 MB / 0.6056 GB, free: 75.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07365/1.244, allocations: 57.19 MB / 0.6614 GB, free: 9.305 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00346/1.247, allocations: 3.46 MB / 0.6648 GB, free: 5.812 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004679/1.252, allocations: 2.011 MB / 0.6668 GB, free: 3.797 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002863/1.255, allocations: 2.1 MB / 0.6688 GB, free: 1.695 MB / 446.1 MB Notification: Performance of SimCode: time 1.453e-06/1.255, allocations: 0 / 0.6688 GB, free: 1.695 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3381/1.593, allocations: 77.07 MB / 0.7441 GB, free: 144.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.06/18.66, allocations: 16.92 kB / 0.7441 GB, free: 144.3 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches