Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001982/0.001982, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002413/0.002413, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 67.88 kB / 377.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2983, allocations: 53.41 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep): time 0.002749/0.3011, allocations: 1.475 MB / 432.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002903/0.3013, allocations: 95.62 kB / 432.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.653e-05/0.3014, allocations: 4 kB / 432.7 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.089e-05/0.3014, allocations: 3.938 kB / 432.7 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.4e-05/0.3015, allocations: 3.938 kB / 432.7 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.3017, allocations: 23.97 kB / 432.8 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.338e-05/0.3018, allocations: 27.86 kB / 432.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.366e-05/0.3019, allocations: 8 kB / 432.8 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.252e-05/0.3019, allocations: 11.98 kB / 432.8 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.791e-05/0.302, allocations: 7.938 kB / 432.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.302, allocations: 0 / 432.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.061e-05/0.302, allocations: 7.938 kB / 432.8 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.838e-05/0.302, allocations: 7.984 kB / 432.8 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.155e-05/0.302, allocations: 7.938 kB / 432.8 MB, free: 4.754 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 8.777e-05/0.3021, allocations: 37.52 kB / 432.9 MB, free: 4.719 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3021, allocations: 0 / 432.9 MB, free: 4.719 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3021, allocations: 7.938 kB / 432.9 MB, free: 4.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.678e-06/0.3021, allocations: 0 / 432.9 MB, free: 4.711 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000397/0.3025, allocations: 262.3 kB / 433.1 MB, free: 4.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3026, allocations: 11.98 kB / 433.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.137e-05/0.3026, allocations: 42.73 kB / 433.2 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.78e-05/0.3026, allocations: 8.891 kB / 433.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.3028, allocations: 114.5 kB / 433.3 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.3028, allocations: 4.375 kB / 433.3 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.3029, allocations: 4.375 kB / 433.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000316/0.3032, allocations: 107.9 kB / 433.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3032, allocations: 3.938 kB / 433.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.3032, allocations: 0 / 433.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3032, allocations: 4 kB / 433.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.226e-05/0.3033, allocations: 19.92 kB / 433.4 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001422/0.3034, allocations: 132.6 kB / 433.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.3036, allocations: 66.52 kB / 433.6 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.564e-05/0.3036, allocations: 20.92 kB / 433.7 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.3036, allocations: 4 kB / 433.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.3037, allocations: 30.56 kB / 433.7 MB, free: 3.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.3037, allocations: 0 / 433.7 MB, free: 3.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002128/0.3039, allocations: 73.55 kB / 433.8 MB, free: 3.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.3039, allocations: 55.41 kB / 433.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.369e-05/0.304, allocations: 109.8 kB / 433.9 MB, free: 3.488 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.304, allocations: 29.7 kB / 434 MB, free: 3.453 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.692e-05/0.3041, allocations: 84.14 kB / 434 MB, free: 3.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.23e-06/0.3041, allocations: 0 / 434 MB, free: 3.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.105e-05/0.3041, allocations: 17.72 kB / 434.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3043, allocations: 314.8 kB / 434.4 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.3043, allocations: 4 kB / 434.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.71e-05/0.3043, allocations: 27.44 kB / 434.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.446e-05/0.3044, allocations: 35.38 kB / 434.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3044, allocations: 7.984 kB / 434.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.815e-05/0.3044, allocations: 53.58 kB / 434.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.3045, allocations: 7.938 kB / 434.5 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.3045, allocations: 4 kB / 434.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.3045, allocations: 0 / 434.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.93e-05/0.3045, allocations: 11.98 kB / 434.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.401e-06/0.3045, allocations: 0 / 434.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.923e-05/0.3046, allocations: 3.953 kB / 434.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.3046, allocations: 4.125 kB / 434.5 MB, free: 2.84 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 8.644e-05/0.3046, allocations: 113.8 kB / 434.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.3048, allocations: 65.55 kB / 434.7 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.79e-05/0.3048, allocations: 11.94 kB / 434.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.3048, allocations: 0 / 434.7 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3048, allocations: 4 kB / 434.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.3048, allocations: 0 / 434.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.3049, allocations: 125 kB / 434.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3049, allocations: 4 kB / 434.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.229e-05/0.3049, allocations: 4 kB / 434.8 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3049, allocations: 11.94 kB / 434.9 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.3049, allocations: 3.938 kB / 434.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3049, allocations: 0 / 434.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3049, allocations: 0 / 434.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001376/0.3051, allocations: 89.33 kB / 434.9 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.052e-05/0.3051, allocations: 7.938 kB / 435 MB, free: 2.324 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.362e-05/0.3051, allocations: 3.938 kB / 435 MB, free: 2.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.712e-05/0.3051, allocations: 3.984 kB / 435 MB, free: 2.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.101e-06/0.3051, allocations: 8.031 kB / 435 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.3051, allocations: 0 / 435 MB, free: 2.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.522e-05/0.3052, allocations: 87.28 kB / 435.1 MB, free: 2.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3052, allocations: 0 / 435.1 MB, free: 2.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000181/0.3054, allocations: 4 kB / 435.1 MB, free: 2.219 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (4): * Single equations (assignments): 4 * 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.0004562/0.3058, allocations: 0.6269 MB / 435.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.3059, allocations: 27.92 kB / 435.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3059, allocations: 0 / 435.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.3059, allocations: 0 / 435.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.3062, allocations: 28.2 kB / 435.7 MB, free: 1.512 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001013/0.3072, allocations: 1.142 MB / 436.9 MB, free: 276 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.72e-05/0.3072, allocations: 67.34 kB / 436.9 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.061e-05/0.3072, allocations: 96 / 436.9 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.3073, allocations: 15.38 kB / 437 MB, free: 172 kB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3073, allocations: 0 / 437 MB, free: 172 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.334, allocations: 1.746 MB / 438.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.12, allocations: 6.719 kB / 438.7 MB, free: 14.53 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedStep.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedStep.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.657860886771232]