Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.001943/0.001943, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001563/0.001563, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.577/1.577, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 43.92 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3528, allocations: 53.36 MB / 431.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.004321/0.3571, allocations: 1.594 MB / 432.7 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.3586, allocations: 0.5376 MB / 433.3 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.3587, allocations: 11.94 kB / 433.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.751e-05/0.3588, allocations: 3.938 kB / 433.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.3589, allocations: 11.86 kB / 433.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004017/0.3593, allocations: 55.77 kB / 433.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.3595, allocations: 47.91 kB / 433.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.3596, allocations: 8.188 kB / 433.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.3598, allocations: 35.84 kB / 433.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.137e-05/0.3599, allocations: 19.86 kB / 433.4 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.3599, allocations: 4 kB / 433.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.145e-05/0.3599, allocations: 8 kB / 433.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.956e-05/0.36, allocations: 19.86 kB / 433.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.805e-05/0.3601, allocations: 31.8 kB / 433.5 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002159/0.3603, allocations: 61.36 kB / 433.6 MB, free: 4.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3603, allocations: 4 kB / 433.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3603, allocations: 0 / 433.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.3603, allocations: 0 / 433.6 MB, free: 4.434 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.0006138/0.3609, allocations: 305.9 kB / 433.9 MB, free: 4.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.361, allocations: 8.031 kB / 433.9 MB, free: 4.098 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.791e-05/0.361, allocations: 42.73 kB / 433.9 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002043/0.3612, allocations: 12.89 kB / 433.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.3616, allocations: 142.3 kB / 434.1 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.3616, allocations: 8.375 kB / 434.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.3616, allocations: 384 / 434.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003884/0.362, allocations: 113 kB / 434.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.362, allocations: 0 / 434.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.362, allocations: 0 / 434.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.362, allocations: 0 / 434.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001079/0.3621, allocations: 23.92 kB / 434.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000496/0.3626, allocations: 236.8 kB / 434.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.3627, allocations: 41.16 kB / 434.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.879e-05/0.3628, allocations: 21.77 kB / 434.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.691e-05/0.3629, allocations: 3.984 kB / 434.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/0.3629, allocations: 34.56 kB / 434.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.3629, allocations: 0 / 434.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003505/0.3632, allocations: 73.56 kB / 434.6 MB, free: 3.223 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.476e-05/0.3633, allocations: 77.11 kB / 434.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.3635, allocations: 144.2 kB / 434.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.3636, allocations: 25.7 kB / 434.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.043e-05/0.3636, allocations: 88.39 kB / 434.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.222e-05/0.3637, allocations: 7.953 kB / 435 MB, free: 2.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.195e-05/0.3637, allocations: 13.72 kB / 435 MB, free: 2.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002128/0.3639, allocations: 326.8 kB / 435.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.788e-05/0.364, allocations: 7.938 kB / 435.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.327e-05/0.364, allocations: 21.7 kB / 435.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.3642, allocations: 29.77 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3642, allocations: 0 / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001829/0.3643, allocations: 57.58 kB / 435.4 MB, free: 2.371 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.3644, allocations: 8 kB / 435.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3644, allocations: 0 / 435.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.3644, allocations: 0 / 435.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.531e-05/0.3645, allocations: 7.984 kB / 435.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3645, allocations: 0 / 435.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.276e-05/0.3646, allocations: 12 kB / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-06/0.3646, allocations: 0 / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001482/0.3647, allocations: 121.8 kB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.3648, allocations: 53.53 kB / 435.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.058e-05/0.3649, allocations: 11.77 kB / 435.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3649, allocations: 0 / 435.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.3649, allocations: 3.984 kB / 435.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3649, allocations: 0 / 435.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.3651, allocations: 148.7 kB / 435.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3651, allocations: 0 / 435.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.687e-05/0.3652, allocations: 4 kB / 435.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.3652, allocations: 4 kB / 435.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.3652, allocations: 3.984 kB / 435.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3652, allocations: 0 / 435.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3652, allocations: 0 / 435.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002592/0.3655, allocations: 172.2 kB / 435.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.204e-05/0.3655, allocations: 15.94 kB / 436 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.3655, allocations: 0 / 436 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.369e-05/0.3656, allocations: 4 kB / 436 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.428e-05/0.3656, allocations: 0 / 436 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.3657, allocations: 4 kB / 436 MB, free: 1.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.3658, allocations: 110.2 kB / 436.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3658, allocations: 0 / 436.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002193/0.366, allocations: 4 kB / 436.1 MB, free: 1.621 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0005096/0.3665, allocations: 0.6937 MB / 436.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001536/0.3666, allocations: 27.95 kB / 436.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3666, allocations: 0 / 436.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.725e-05/0.3667, allocations: 7.984 kB / 436.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.3671, allocations: 16.03 kB / 436.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002052/0.3691, allocations: 1.335 MB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.3695, allocations: 0.6846 MB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.531e-05/0.3695, allocations: 4 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.543e-05/0.3696, allocations: 23.42 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3696, allocations: 3.938 kB / 438.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03119/0.4008, allocations: 1.669 MB / 440.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.77, allocations: 4.062 kB / 440.5 MB, free: 13.14 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.487812879029661]