Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.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.Translational.Examples.Accelerate,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Accelerate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Accelerate,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Accelerate",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.002087/0.002087, allocations: 107.9 kB / 16.92 MB, free: 6.195 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.002266/0.002266, allocations: 191.4 kB / 17.85 MB, free: 5.297 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.329/2.329, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002109/0.002109, allocations: 47.44 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1891, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Accelerate): time 0.008635/0.1979, allocations: 1.627 MB / 351.8 MB, free: 2.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005656/0.1985, allocations: 67.73 kB / 351.9 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.1987, allocations: 0 / 351.9 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002014/0.1989, allocations: 7.922 kB / 351.9 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.1991, allocations: 19.84 kB / 351.9 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.1994, allocations: 23.92 kB / 351.9 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002498/0.1996, allocations: 63.72 kB / 352 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.1999, allocations: 19.98 kB / 352 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.2, allocations: 23.94 kB / 352 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.2001, allocations: 23.86 kB / 352 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.2002, allocations: 4 kB / 352 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.979e-05/0.2002, allocations: 4 kB / 352 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.468e-05/0.2003, allocations: 23.91 kB / 352.1 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.262e-05/0.2004, allocations: 27.88 kB / 352.1 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002261/0.2006, allocations: 68.02 kB / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.2006, allocations: 0 / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.2007, allocations: 0 / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.2007, allocations: 0 / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009335/0.2016, allocations: 363.3 kB / 352.5 MB, free: 1.891 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001051/0.2017, allocations: 12.03 kB / 352.5 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.556e-05/0.2018, allocations: 38.73 kB / 352.6 MB, free: 1.832 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.426e-05/0.2019, allocations: 8.844 kB / 352.6 MB, free: 1.824 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003567/0.2023, allocations: 184.3 kB / 352.8 MB, free: 1.605 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.2023, allocations: 12.31 kB / 352.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.277e-05/0.2024, allocations: 4.375 kB / 352.8 MB, free: 1.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003462/0.2028, allocations: 74.22 kB / 352.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.363e-05/0.2028, allocations: 3.938 kB / 352.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.2029, allocations: 0 / 352.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.2029, allocations: 4 kB / 352.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002/0.2031, allocations: 39.97 kB / 352.9 MB, free: 1.465 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.2044, allocations: 377 kB / 353.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001847/0.2046, allocations: 58.5 kB / 353.3 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.12e-05/0.2047, allocations: 20.84 kB / 353.3 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.2047, allocations: 160 / 353.3 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.2048, allocations: 34.56 kB / 353.4 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 2.254e-06/0.2048, allocations: 4 kB / 353.4 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of matching and sorting (n=9): time 0.001454/0.2063, allocations: 0.5128 MB / 353.9 MB, free: 308 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/0.2064, allocations: 55.34 kB / 353.9 MB, free: 240 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.2066, allocations: 121.8 kB / 354.1 MB, free: 108 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.2066, allocations: 25.7 kB / 354.1 MB, free: 76 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2068, allocations: 92.05 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.531e-05/0.2068, allocations: 39.53 kB / 354.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.074e-05/0.2069, allocations: 29.61 kB / 354.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002556/0.2072, allocations: 318.8 kB / 354.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.828e-05/0.2073, allocations: 15.98 kB / 354.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.2074, allocations: 62.89 kB / 354.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.2076, allocations: 89.08 kB / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.2077, allocations: 0 / 354.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002765/0.208, allocations: 105.5 kB / 354.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.208, allocations: 7.938 kB / 354.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.208, allocations: 8.094 kB / 354.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.963e-05/0.2081, allocations: 144 / 354.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.2082, allocations: 23.98 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.2082, allocations: 3.938 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.379e-05/0.2083, allocations: 7.984 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.2083, allocations: 4 kB / 354.9 MB, free: 15.22 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (13): * Single equations (assignments): 13 * 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.0001775/0.2085, allocations: 125.7 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.805e-05/0.2086, allocations: 7.906 kB / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.825e-05/0.2086, allocations: 8.375 kB / 355 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.2087, allocations: 8 kB / 355 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/0.2087, allocations: 4.406 kB / 355 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.2087, allocations: 3.984 kB / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007995/0.2095, allocations: 398.6 kB / 355.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.2095, allocations: 12.14 kB / 355.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/0.2097, allocations: 19.94 kB / 355.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.2097, allocations: 3.938 kB / 355.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.2097, allocations: 11.94 kB / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2097, allocations: 0 / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.2098, allocations: 4 kB / 355.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004042/0.2102, allocations: 231.6 kB / 355.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.36e-05/0.2103, allocations: 89 kB / 355.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.2103, allocations: 4 kB / 355.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.2105, allocations: 0 / 355.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.2105, allocations: 15.94 kB / 355.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.2105, allocations: 4.047 kB / 355.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.623e-05/0.2106, allocations: 95.28 kB / 355.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2106, allocations: 0 / 355.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004764/0.2111, allocations: 16 kB / 355.9 MB, free: 14.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (accelerate.s,accelerate.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 (9): * Single equations (assignments): 9 * 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.0009213/0.2121, allocations: 0.775 MB / 356.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002552/0.2123, allocations: 55.92 kB / 356.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2124, allocations: 0 / 356.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.789e-05/0.2124, allocations: 32.42 kB / 356.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007082/0.2132, allocations: 16.47 kB / 356.8 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003234/0.2164, allocations: 1.665 MB / 358.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005287/0.217, allocations: 0.7007 MB / 359.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.062e-05/0.2171, allocations: 4.438 kB / 359.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.513e-05/0.2172, allocations: 23.42 kB / 359.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of SimCode: time 1.202e-06/0.2172, allocations: 0 / 359.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03463/0.2518, allocations: 1.87 MB / 361.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.5, allocations: 19.5 kB / 361.1 MB, free: 8.762 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Accelerate.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Accelerate/Accelerate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Accelerate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches