Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.002092/0.002092, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.002651/0.002651, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.533/2.533, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 45.7 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1769, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.02783/0.2048, allocations: 12 MB / 362.2 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01856/0.2235, allocations: 4.194 MB / 366.4 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004427/0.228, allocations: 75.75 kB / 366.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01157/0.2397, allocations: 2.752 MB / 369.2 MB, free: 1.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.349/0.5887, allocations: 1.963 MB / 371.2 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003483/0.5922, allocations: 0.8098 MB / 372 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01201/0.6043, allocations: 4.596 MB / 376.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009911/0.6142, allocations: 3.56 MB / 380.1 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006674/0.621, allocations: 1.682 MB / 381.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007338/0.6284, allocations: 2.342 MB / 384.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00332/0.6318, allocations: 352.5 kB / 384.5 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007316/0.6391, allocations: 1.283 MB / 385.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005889/0.6451, allocations: 2.097 MB / 387.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009724/0.6548, allocations: 2.431 MB / 390.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01724/0.6721, allocations: 7.275 MB / 397.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.618e-06/0.6722, allocations: 0 / 397.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.6722, allocations: 0 / 397.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003968/0.6727, allocations: 0 / 397.6 MB, free: 1.105 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.02412/0.6968, allocations: 5.3 MB / 402.9 MB, free: 12.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.28e-05/0.6969, allocations: 12.03 kB / 402.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004111/0.701, allocations: 0.7989 MB / 403.7 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01814/0.7192, allocations: 2.131 MB / 405.8 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/0.7327, allocations: 3.101 MB / 408.9 MB, free: 6.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005888/0.7334, allocations: 272.3 kB / 409.2 MB, free: 6.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003458/0.7369, allocations: 431.2 kB / 409.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04888/0.7858, allocations: 12.22 MB / 421.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005513/0.7865, allocations: 47.62 kB / 421.9 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003394/0.7899, allocations: 174.8 kB / 422 MB, free: 9.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007378/0.7973, allocations: 2.163 MB / 424.2 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0485/0.8459, allocations: 10.21 MB / 434.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1152/0.9612, allocations: 44.28 MB / 478.7 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02533/0.9866, allocations: 4.608 MB / 483.3 MB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005584/0.9922, allocations: 1.723 MB / 485 MB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03192/1.024, allocations: 8.188 MB / 493.2 MB, free: 424 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/1.024, allocations: 59.75 kB / 493.3 MB, free: 356 kB / 398.1 MB Notification: Performance of pre-optimization done (n=183): time 1.261e-05/1.024, allocations: 4 kB / 493.3 MB, free: 352 kB / 398.1 MB Notification: Performance of matching and sorting (n=205): time 0.09888/1.123, allocations: 15.92 MB / 0.4973 GB, free: 272 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002818/1.126, allocations: 1.688 MB / 0.4989 GB, free: 14.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0177/1.144, allocations: 4.211 MB / 0.503 GB, free: 10.16 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001093/1.145, allocations: 57.7 kB / 0.5031 GB, free: 10.1 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007355/1.153, allocations: 3.402 MB / 0.5064 GB, free: 6.699 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002383/1.155, allocations: 0.8092 MB / 0.5072 GB, free: 5.895 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00833/1.163, allocations: 1.342 MB / 0.5085 GB, free: 4.547 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002519/1.164, allocations: 301.1 kB / 0.5088 GB, free: 4.25 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009146/1.173, allocations: 2.227 MB / 0.511 GB, free: 2.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01513/1.188, allocations: 6.36 MB / 0.5172 GB, free: 9.625 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3824/1.571, allocations: 9.257 MB / 0.5262 GB, free: 140.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005035/1.571, allocations: 44.41 kB / 0.5263 GB, free: 140.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.03946/1.611, allocations: 9.08 MB / 0.5351 GB, free: 138.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004189/1.611, allocations: 67.75 kB / 0.5352 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01365/1.625, allocations: 2.845 MB / 0.538 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007954/1.633, allocations: 1.077 MB / 0.539 GB, free: 137.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01137/1.644, allocations: 1.568 MB / 0.5406 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009138/1.654, allocations: 4.677 MB / 0.5451 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01286/1.666, allocations: 421.7 kB / 0.5455 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002222/1.669, allocations: 419.8 kB / 0.5459 GB, free: 133.9 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.008814/1.678, allocations: 2.211 MB / 0.5481 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002023/1.68, allocations: 381.2 kB / 0.5484 GB, free: 132.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01382/1.693, allocations: 3.284 MB / 0.5517 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01032/1.704, allocations: 2.748 MB / 0.5543 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-05/1.704, allocations: 3.938 kB / 0.5543 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.958e-05/1.704, allocations: 7.641 kB / 0.5543 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03928/1.743, allocations: 10.35 MB / 0.5645 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.83e-05/1.744, allocations: 12 kB / 0.5645 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003126/1.747, allocations: 364.3 kB / 0.5648 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00578/1.753, allocations: 0.9941 MB / 0.5658 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005482/1.753, allocations: 58.23 kB / 0.5658 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008195/1.761, allocations: 4.899 MB / 0.5706 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001431/1.763, allocations: 1.566 MB / 0.5721 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01697/1.78, allocations: 5.916 MB / 0.5779 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002121/1.782, allocations: 436.1 kB / 0.5783 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001737/1.784, allocations: 55.97 kB / 0.5784 GB, free: 111.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004399/1.788, allocations: 143.8 kB / 0.5785 GB, free: 111.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007264/1.789, allocations: 176.4 kB / 0.5787 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003294/1.789, allocations: 75.97 kB / 0.5788 GB, free: 110.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007666/1.797, allocations: 2.598 MB / 0.5813 GB, free: 108.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.81e-07/1.797, allocations: 0 / 0.5813 GB, free: 108.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01194/1.809, allocations: 1.139 MB / 0.5824 GB, free: 107.1 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.01718/1.826, allocations: 6.614 MB / 0.5889 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0194/1.846, allocations: 6.566 MB / 0.5953 GB, free: 93.69 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.082e-05/1.846, allocations: 4 kB / 0.5953 GB, free: 93.69 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007209/1.853, allocations: 2.199 MB / 0.5974 GB, free: 91.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007664/1.861, allocations: 0.5065 MB / 0.5979 GB, free: 90.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1353/1.996, allocations: 57.12 MB / 0.6537 GB, free: 24.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007955/2.004, allocations: 3.455 MB / 0.6571 GB, free: 21.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.01035/2.015, allocations: 2.022 MB / 0.6591 GB, free: 19.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005733/2.02, allocations: 2.1 MB / 0.6611 GB, free: 17.22 MB / 446.1 MB Notification: Performance of SimCode: time 1.974e-06/2.02, allocations: 3.938 kB / 0.6611 GB, free: 17.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6246/2.645, allocations: 77.3 MB / 0.7366 GB, free: 136.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.53/26.17, allocations: 7.656 kB / 0.7366 GB, free: 136.4 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv","/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches