Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 186.2 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002682/0.002682, allocations: 47.92 kB / 370.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3622, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003778/0.366, allocations: 1.607 MB / 424.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.3671, allocations: 486.7 kB / 424.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.766e-05/0.3672, allocations: 0 / 424.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.579e-05/0.3672, allocations: 7.875 kB / 424.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000154/0.3674, allocations: 15.92 kB / 424.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003552/0.3677, allocations: 51.08 kB / 424.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.3679, allocations: 43.86 kB / 424.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001327/0.368, allocations: 16.16 kB / 424.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.091e-05/0.3681, allocations: 23.86 kB / 424.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.134e-05/0.3682, allocations: 19.92 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.3682, allocations: 0 / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.513e-05/0.3682, allocations: 4 kB / 424.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.908e-05/0.3682, allocations: 11.94 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.706e-05/0.3683, allocations: 35.78 kB / 424.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.3685, allocations: 56.11 kB / 425 MB, free: 12.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3685, allocations: 0 / 425 MB, free: 12.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3685, allocations: 0 / 425 MB, free: 12.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.3685, allocations: 3.938 kB / 425 MB, free: 12.21 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005795/0.3691, allocations: 306 kB / 425.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.3691, allocations: 8.031 kB / 425.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.28e-05/0.3692, allocations: 38.69 kB / 425.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.824e-05/0.3692, allocations: 8.891 kB / 425.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.3695, allocations: 146.3 kB / 425.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.3695, allocations: 8.375 kB / 425.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.446e-05/0.3695, allocations: 384 / 425.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.3698, allocations: 113.8 kB / 425.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.3698, allocations: 4 kB / 425.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.3699, allocations: 4 kB / 425.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.3699, allocations: 0 / 425.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.391e-05/0.37, allocations: 19.92 kB / 425.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003629/0.3703, allocations: 253.6 kB / 425.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001292/0.3704, allocations: 67.84 kB / 426 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.659e-05/0.3705, allocations: 34.56 kB / 426 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.082e-05/0.3705, allocations: 3.984 kB / 426 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.3706, allocations: 46.56 kB / 426 MB, free: 10.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.3706, allocations: 0 / 426 MB, free: 10.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002821/0.3709, allocations: 77.56 kB / 426.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.638e-05/0.371, allocations: 110.8 kB / 426.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.3711, allocations: 144.8 kB / 426.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.3711, allocations: 33.7 kB / 426.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.985e-05/0.3712, allocations: 88.08 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.3712, allocations: 3.953 kB / 426.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.3712, allocations: 25.7 kB / 426.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.3714, allocations: 322.7 kB / 426.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.27e-05/0.3714, allocations: 7.984 kB / 426.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.608e-05/0.3715, allocations: 39.42 kB / 426.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.363e-05/0.3716, allocations: 47.36 kB / 426.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3716, allocations: 0 / 426.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001341/0.3717, allocations: 69.58 kB / 427 MB, free: 9.949 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3717, allocations: 4 kB / 427 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.3717, allocations: 3.938 kB / 427 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3718, allocations: 4 kB / 427 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.248e-05/0.3719, allocations: 19.92 kB / 427 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.3719, allocations: 3.984 kB / 427 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.191e-05/0.3719, allocations: 4 kB / 427 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.3719, allocations: 0 / 427 MB, free: 9.91 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 0.0001149/0.372, allocations: 125.9 kB / 427.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.176e-05/0.3721, allocations: 53.59 kB / 427.2 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.872e-05/0.3721, allocations: 15.95 kB / 427.2 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3722, allocations: 96 / 427.2 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.3722, allocations: 3.984 kB / 427.2 MB, free: 9.695 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.3722, allocations: 4 kB / 427.2 MB, free: 9.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001852/0.3723, allocations: 140.7 kB / 427.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3724, allocations: 4 kB / 427.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.707e-05/0.3724, allocations: 7.984 kB / 427.4 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.3724, allocations: 8.062 kB / 427.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-06/0.3724, allocations: 0 / 427.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3724, allocations: 0 / 427.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3724, allocations: 4 kB / 427.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00021/0.3726, allocations: 181.1 kB / 427.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.3727, allocations: 15.94 kB / 427.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.3727, allocations: 4 kB / 427.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.969e-05/0.3728, allocations: 4 kB / 427.6 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.3728, allocations: 3.984 kB / 427.6 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.3728, allocations: 4 kB / 427.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.891e-05/0.3729, allocations: 103.3 kB / 427.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3729, allocations: 0 / 427.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002276/0.3731, allocations: 8 kB / 427.7 MB, free: 9.148 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0005536/0.3737, allocations: 0.714 MB / 428.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001593/0.3738, allocations: 32.11 kB / 428.5 MB, free: 8.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3738, allocations: 8.062 kB / 428.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.513e-05/0.3739, allocations: 7.984 kB / 428.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003855/0.3743, allocations: 27.95 kB / 428.5 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.3758, allocations: 1.396 MB / 429.9 MB, free: 6.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.3763, allocations: 0.7 MB / 430.6 MB, free: 6.094 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.057e-05/0.3763, allocations: 4 kB / 430.6 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.93e-05/0.3763, allocations: 19.42 kB / 430.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3764, allocations: 0 / 430.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03156/0.4079, allocations: 1.78 MB / 432.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.43, allocations: 6.438 kB / 432.4 MB, free: 4.418 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.99122e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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: 14.267718234998028]