Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.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.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper",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.001409/0.001409, allocations: 114.4 kB / 17.73 MB, free: 5.34 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.001222/0.001222, allocations: 187.1 kB / 18.66 MB, free: 4.414 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.58/1.58, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.00175/0.00175, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1145, allocations: 46.61 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.00401/0.1186, allocations: 2.409 MB / 377 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005901/0.1192, allocations: 235.1 kB / 377.3 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.1194, allocations: 12 kB / 377.3 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.1196, allocations: 43.58 kB / 377.3 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.1197, allocations: 79.2 kB / 377.4 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002076/0.12, allocations: 59.92 kB / 377.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003359/0.1203, allocations: 290.6 kB / 377.7 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002234/0.1205, allocations: 109.7 kB / 377.9 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.1207, allocations: 95.66 kB / 377.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.1209, allocations: 123.5 kB / 378.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.435e-05/0.1209, allocations: 24 kB / 378.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.501e-05/0.121, allocations: 24 kB / 378.1 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.088e-05/0.121, allocations: 43.84 kB / 378.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.1212, allocations: 143.3 kB / 378.3 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003816/0.1216, allocations: 286.8 kB / 378.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1216, allocations: 0 / 378.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1216, allocations: 3.938 kB / 378.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1216, allocations: 0 / 378.6 MB, free: 1.133 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0008833/0.1225, allocations: 0.5534 MB / 379.1 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.1225, allocations: 12.03 kB / 379.1 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.361e-05/0.1226, allocations: 54.67 kB / 379.2 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.621e-05/0.1227, allocations: 36.75 kB / 379.2 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000381/0.1231, allocations: 240.7 kB / 379.5 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.1231, allocations: 16.94 kB / 379.5 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.1232, allocations: 28.36 kB / 379.5 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2053/0.3285, allocations: 243.7 kB / 379.8 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.3286, allocations: 2.969 kB / 379.8 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.3286, allocations: 12.47 kB / 379.8 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.3286, allocations: 7.969 kB / 379.8 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003057/0.329, allocations: 162.6 kB / 379.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.3301, allocations: 0.7931 MB / 380.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005106/0.3306, allocations: 293 kB / 381 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.3309, allocations: 132.4 kB / 381.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.3309, allocations: 6.812 kB / 381.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.3309, allocations: 41.75 kB / 381.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 2.475e-06/0.3309, allocations: 0.9688 kB / 381.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.002757/0.3337, allocations: 1.964 MB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.3338, allocations: 109.7 kB / 383.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.334, allocations: 188.9 kB / 383.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.334, allocations: 34.7 kB / 383.5 MB, free: 10.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.338e-05/0.3341, allocations: 140.8 kB / 383.6 MB, free: 10.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.3342, allocations: 166.1 kB / 383.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.3343, allocations: 72.36 kB / 383.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.358e-05/0.3344, allocations: 338.4 kB / 384.2 MB, free: 9.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.3346, allocations: 93.97 kB / 384.3 MB, free: 9.949 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.3348, allocations: 159.8 kB / 384.4 MB, free: 9.844 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.3352, allocations: 275.9 kB / 384.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.3352, allocations: 5.438 kB / 384.7 MB, free: 9.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005471/0.3357, allocations: 340.2 kB / 385 MB, free: 9.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.3357, allocations: 5.625 kB / 385 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3358, allocations: 4.375 kB / 385 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.3358, allocations: 4.031 kB / 385 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003569/0.3362, allocations: 93.7 kB / 385.1 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.3362, allocations: 4.109 kB / 385.1 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.3363, allocations: 12.22 kB / 385.2 MB, free: 9.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.3363, allocations: 15.28 kB / 385.2 MB, free: 9.508 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001344/0.3365, allocations: 166.8 kB / 385.3 MB, free: 9.348 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.737e-05/0.3366, allocations: 30.95 kB / 385.4 MB, free: 9.332 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.604e-05/0.3367, allocations: 38.64 kB / 385.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.3367, allocations: 5.469 kB / 385.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/0.3367, allocations: 0 / 385.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.3367, allocations: 3.766 kB / 385.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001365/0.3381, allocations: 1.062 MB / 386.5 MB, free: 8.543 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.3381, allocations: 2.984 kB / 386.5 MB, free: 8.543 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003583/0.3385, allocations: 92.28 kB / 386.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.756e-06/0.3385, allocations: 4.438 kB / 386.6 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.787e-05/0.3385, allocations: 15.55 kB / 386.6 MB, free: 8.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/0.3385, allocations: 5.109 kB / 386.6 MB, free: 8.523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.3385, allocations: 7.156 kB / 386.6 MB, free: 8.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007608/0.3393, allocations: 0.7204 MB / 387.3 MB, free: 7.996 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.406e-05/0.3394, allocations: 108.9 kB / 387.4 MB, free: 7.883 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.3e-05/0.3395, allocations: 14.81 kB / 387.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.3397, allocations: 8.25 kB / 387.4 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.869e-05/0.3397, allocations: 31.89 kB / 387.5 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.3397, allocations: 15.62 kB / 387.5 MB, free: 7.859 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001187/0.3399, allocations: 142.7 kB / 387.6 MB, free: 7.762 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3399, allocations: 4 kB / 387.6 MB, free: 7.758 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004548/0.3403, allocations: 71.62 kB / 387.7 MB, free: 7.746 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,damper1.s_rel,damper1.v_rel) * 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 (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009019/0.3412, allocations: 1.261 MB / 389 MB, free: 6.691 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005338/0.3418, allocations: 274.6 kB / 389.2 MB, free: 6.602 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3418, allocations: 1.219 kB / 389.2 MB, free: 6.602 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.342, allocations: 148.9 kB / 389.4 MB, free: 6.551 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000747/0.3428, allocations: 73.28 kB / 389.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003878/0.3467, allocations: 3.291 MB / 392.7 MB, free: 4.09 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.347, allocations: 0.7676 MB / 393.5 MB, free: 3.387 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.3472, allocations: 34.27 kB / 393.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.3473, allocations: 89.95 kB / 393.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3473, allocations: 1.281 kB / 393.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03749/0.3848, allocations: 5.947 MB / 399.6 MB, free: 2.293 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.595/8.98, allocations: 6.047 kB / 399.6 MB, free: 2.289 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Damper/Damper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches