Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 215.3 kB / 23.73 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.575/1.575, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 55.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2636, allocations: 53.37 MB / 431.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.003415/0.267, allocations: 1.627 MB / 432.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.2683, allocations: 0.5376 MB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.2684, allocations: 7.938 kB / 433.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.517e-05/0.2684, allocations: 7.922 kB / 433.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.2686, allocations: 19.88 kB / 433.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.269, allocations: 67.73 kB / 433.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001433/0.2691, allocations: 59.78 kB / 433.4 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.2692, allocations: 20.2 kB / 433.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.2694, allocations: 31.8 kB / 433.5 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.751e-05/0.2694, allocations: 27.84 kB / 433.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.2695, allocations: 4 kB / 433.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.638e-05/0.2695, allocations: 4 kB / 433.5 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.704e-05/0.2696, allocations: 19.92 kB / 433.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.035e-05/0.2696, allocations: 23.81 kB / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001951/0.2698, allocations: 77.34 kB / 433.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.976e-06/0.2698, allocations: 4 kB / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2698, allocations: 0 / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.2698, allocations: 3.938 kB / 433.6 MB, free: 4.059 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005747/0.2704, allocations: 309.8 kB / 433.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.2704, allocations: 12.03 kB / 433.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.438e-05/0.2705, allocations: 38.73 kB / 434 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.2707, allocations: 20.84 kB / 434 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/0.271, allocations: 154.3 kB / 434.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.271, allocations: 4.375 kB / 434.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.271, allocations: 8.375 kB / 434.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.2713, allocations: 138.8 kB / 434.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.2714, allocations: 0 / 434.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.2714, allocations: 0 / 434.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.309e-06/0.2714, allocations: 0 / 434.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.195e-05/0.2715, allocations: 35.92 kB / 434.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003766/0.2718, allocations: 258.4 kB / 434.6 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.272, allocations: 98.3 kB / 434.7 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.428e-05/0.2721, allocations: 43.48 kB / 434.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.2721, allocations: 4 kB / 434.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.2721, allocations: 30.56 kB / 434.8 MB, free: 2.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.2721, allocations: 4 kB / 434.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003084/0.2725, allocations: 101.5 kB / 434.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.2726, allocations: 140.5 kB / 435 MB, free: 2.453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.2727, allocations: 151.9 kB / 435.1 MB, free: 2.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/0.2727, allocations: 25.7 kB / 435.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.572e-05/0.2728, allocations: 92.14 kB / 435.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.2728, allocations: 8.438 kB / 435.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.145e-05/0.2729, allocations: 25.72 kB / 435.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.273, allocations: 322.8 kB / 435.6 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.663e-05/0.2731, allocations: 12 kB / 435.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.076e-05/0.2731, allocations: 53.14 kB / 435.7 MB, free: 1.727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.2733, allocations: 65.08 kB / 435.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2733, allocations: 0 / 435.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001616/0.2734, allocations: 85.5 kB / 435.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.2734, allocations: 8 kB / 435.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.2734, allocations: 0 / 435.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.2735, allocations: 3.938 kB / 435.8 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.451e-05/0.2735, allocations: 15.98 kB / 435.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2736, allocations: 192 / 435.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.538e-05/0.2736, allocations: 11.94 kB / 435.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.2736, allocations: 4 kB / 435.9 MB, free: 1.512 MB / 334.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 (6): * Single equations (assignments): 6 * 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.000112/0.2737, allocations: 125.8 kB / 436 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.2738, allocations: 69.53 kB / 436.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.015e-05/0.2739, allocations: 15.92 kB / 436.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2739, allocations: 0 / 436.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.2739, allocations: 4 kB / 436.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2739, allocations: 0 / 436.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002697/0.2742, allocations: 144.8 kB / 436.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.2742, allocations: 11.94 kB / 436.2 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.768e-05/0.2742, allocations: 15.98 kB / 436.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2742, allocations: 4 kB / 436.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.2742, allocations: 3.938 kB / 436.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2742, allocations: 0 / 436.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2742, allocations: 4 kB / 436.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.2745, allocations: 198 kB / 436.5 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.648e-05/0.2745, allocations: 23.92 kB / 436.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.2746, allocations: 7.984 kB / 436.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.062e-05/0.2746, allocations: 11.94 kB / 436.5 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.165e-05/0.2747, allocations: 3.984 kB / 436.5 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.2747, allocations: 4.188 kB / 436.5 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.809e-05/0.2748, allocations: 118.7 kB / 436.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2748, allocations: 0 / 436.6 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.275, allocations: 8 kB / 436.6 MB, free: 0.668 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (6): * Single equations (assignments): 6 * 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.0005991/0.2756, allocations: 0.7439 MB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001625/0.2758, allocations: 43.92 kB / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2758, allocations: 0 / 437.4 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.669e-05/0.2758, allocations: 7.984 kB / 437.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.2762, allocations: 42.53 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.2779, allocations: 1.5 MB / 439 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.361e-05/0.278, allocations: 83.31 kB / 439 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.452e-05/0.2781, allocations: 0.6719 kB / 439 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.691e-05/0.2781, allocations: 23.42 kB / 439.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2781, allocations: 0 / 439.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03694/0.3151, allocations: 2.67 MB / 441.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.36, allocations: 0 / 441.7 MB, free: 11.53 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79319e-05 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.977512944024056]