Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_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.001132/0.001132, allocations: 106.6 kB / 17.73 MB, free: 5.367 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.001234/0.001234, allocations: 187.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.325/1.325, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001234, allocations: 59.91 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08101/0.08225, allocations: 46.62 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.1774/0.2597, allocations: 12.03 MB / 386.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00819/0.2679, allocations: 4.194 MB / 390.9 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002386/0.2704, allocations: 73.41 kB / 391 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005172/0.2756, allocations: 2.756 MB / 393.7 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005699/0.2813, allocations: 1.971 MB / 395.7 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001923/0.2833, allocations: 0.8168 MB / 396.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006966/0.2902, allocations: 4.625 MB / 401.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004758/0.2951, allocations: 3.549 MB / 404.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003365/0.2985, allocations: 1.697 MB / 406.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003854/0.3023, allocations: 2.353 MB / 408.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001235/0.3036, allocations: 352 kB / 409.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002951/0.3066, allocations: 1.273 MB / 410.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002381/0.309, allocations: 2.128 MB / 412.5 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003129/0.3121, allocations: 2.446 MB / 414.9 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007746/0.3199, allocations: 7.56 MB / 422.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3199, allocations: 0 / 422.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3199, allocations: 0 / 422.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001434/0.32, allocations: 0 / 422.5 MB, free: 15.93 MB / 350.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.008866/0.3289, allocations: 5.321 MB / 427.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.329, allocations: 8.031 kB / 427.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008628/0.3298, allocations: 0.8021 MB / 428.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007706/0.3376, allocations: 2.131 MB / 430.7 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006067/0.3437, allocations: 3.442 MB / 434.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.3439, allocations: 270.9 kB / 434.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001174/0.3451, allocations: 427.7 kB / 434.9 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02386/0.369, allocations: 12.22 MB / 447.1 MB, free: 6.359 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002008/0.3692, allocations: 47.53 kB / 447.1 MB, free: 6.312 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001125/0.3703, allocations: 175.8 kB / 447.3 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003371/0.3737, allocations: 2.166 MB / 449.5 MB, free: 3.973 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02168/0.3954, allocations: 10.2 MB / 459.7 MB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05411/0.4496, allocations: 44.13 MB / 0.492 GB, free: 12.38 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01144/0.4611, allocations: 4.601 MB / 0.4965 GB, free: 7.574 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00253/0.4636, allocations: 1.72 MB / 0.4982 GB, free: 5.844 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01318/0.4768, allocations: 8.188 MB / 0.5062 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/0.4769, allocations: 51.88 kB / 0.5062 GB, free: 13.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.849e-06/0.477, allocations: 0 / 0.5062 GB, free: 13.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04026/0.5172, allocations: 16.05 MB / 0.5219 GB, free: 12.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001238/0.5185, allocations: 1.707 MB / 0.5235 GB, free: 11.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006317/0.5248, allocations: 4.236 MB / 0.5277 GB, free: 6.824 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003247/0.5252, allocations: 53.7 kB / 0.5277 GB, free: 6.766 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002296/0.5275, allocations: 3.404 MB / 0.5311 GB, free: 3.312 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009713/0.5285, allocations: 0.8022 MB / 0.5318 GB, free: 2.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002334/0.5308, allocations: 1.349 MB / 0.5332 GB, free: 1.141 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.409e-05/0.5309, allocations: 305.1 kB / 0.5334 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003467/0.5344, allocations: 2.231 MB / 0.5356 GB, free: 14.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006259/0.5407, allocations: 6.351 MB / 0.5418 GB, free: 6.203 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1909/0.7316, allocations: 9.26 MB / 0.5509 GB, free: 139.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001759/0.7319, allocations: 41.69 kB / 0.5509 GB, free: 139.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.02078/0.7526, allocations: 9.079 MB / 0.5598 GB, free: 137.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/0.7528, allocations: 70.19 kB / 0.5598 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005536/0.7583, allocations: 2.839 MB / 0.5626 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003519/0.7619, allocations: 1.07 MB / 0.5637 GB, free: 136.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005134/0.767, allocations: 1.575 MB / 0.5652 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004532/0.7716, allocations: 4.675 MB / 0.5698 GB, free: 133.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00488/0.7765, allocations: 419.7 kB / 0.5702 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009935/0.7775, allocations: 413.7 kB / 0.5706 GB, free: 132.9 MB / 478.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.003792/0.7813, allocations: 2.213 MB / 0.5727 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006975/0.782, allocations: 380.3 kB / 0.5731 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005538/0.7876, allocations: 3.292 MB / 0.5763 GB, free: 130.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004213/0.7918, allocations: 2.741 MB / 0.579 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.7918, allocations: 9.938 kB / 0.579 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.7918, allocations: 11.14 kB / 0.579 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01551/0.8073, allocations: 10.34 MB / 0.5891 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.149e-05/0.8074, allocations: 11.12 kB / 0.5891 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.8088, allocations: 371.8 kB / 0.5895 GB, free: 125.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002694/0.8115, allocations: 0.9782 MB / 0.5904 GB, free: 124.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002223/0.8117, allocations: 74.53 kB / 0.5905 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.8158, allocations: 4.899 MB / 0.5953 GB, free: 119.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000709/0.8165, allocations: 1.557 MB / 0.5968 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00749/0.824, allocations: 5.916 MB / 0.6026 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/0.8259, allocations: 0.66 MB / 0.6032 GB, free: 111.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007698/0.8267, allocations: 55.98 kB / 0.6033 GB, free: 111.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001959/0.8286, allocations: 147.8 kB / 0.6034 GB, free: 110.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003052/0.829, allocations: 172.4 kB / 0.6036 GB, free: 110.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/0.8291, allocations: 74.98 kB / 0.6036 GB, free: 110.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004302/0.8335, allocations: 2.63 MB / 0.6062 GB, free: 108.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8335, allocations: 3.938 kB / 0.6062 GB, free: 108.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005597/0.8391, allocations: 1.129 MB / 0.6073 GB, free: 106.9 MB / 478.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.00742/0.8465, allocations: 6.609 MB / 0.6138 GB, free: 100.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008538/0.8551, allocations: 5.926 MB / 0.6196 GB, free: 94.16 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-05/0.8551, allocations: 4 kB / 0.6196 GB, free: 94.16 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003545/0.8587, allocations: 2.202 MB / 0.6217 GB, free: 91.89 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003861/0.8626, allocations: 0.498 MB / 0.6222 GB, free: 91.42 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06685/0.9294, allocations: 50.61 MB / 0.6716 GB, free: 33.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004269/0.9338, allocations: 3.471 MB / 0.675 GB, free: 30.47 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004211/0.938, allocations: 2.022 MB / 0.677 GB, free: 28.45 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002559/0.9406, allocations: 2.096 MB / 0.679 GB, free: 26.35 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/0.9406, allocations: 3.062 kB / 0.679 GB, free: 26.35 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.248/2.189, allocations: 74.54 MB / 0.7518 GB, free: 161.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 55.51/57.7, allocations: 4.859 kB / 0.7518 GB, free: 161.2 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches