Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.0007909/0.0007909, allocations: 80.36 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007996/0.0007996, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8614/0.8614, allocations: 177 MB / 204.1 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.243e-05, allocations: 4.391 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002454/0.002477, allocations: 1.59 MB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008698/0.003347, allocations: 0.5064 MB / 326.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.003451, allocations: 3.938 kB / 326.6 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.054e-05/0.003501, allocations: 3.938 kB / 326.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.003656, allocations: 11.88 kB / 326.7 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003503/0.004006, allocations: 67.73 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.004113, allocations: 51.78 kB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.004215, allocations: 8.188 kB / 326.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.004348, allocations: 35.89 kB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.586e-05/0.004394, allocations: 15.92 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.00441, allocations: 4 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.807e-05/0.004448, allocations: 4 kB / 326.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.436e-05/0.004492, allocations: 15.92 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.42e-05/0.004516, allocations: 19.92 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.004649, allocations: 63.67 kB / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.004652, allocations: 4 kB / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.004654, allocations: 0 / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.391e-06/0.004659, allocations: 0 / 326.9 MB, free: 13.44 MB / 298.7 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.0003773/0.005036, allocations: 302 kB / 327.2 MB, free: 13.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.005076, allocations: 11.98 kB / 327.2 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.132e-05/0.005108, allocations: 42.73 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.005225, allocations: 12.89 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002166/0.005441, allocations: 142.2 kB / 327.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.00545, allocations: 12.3 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.005465, allocations: 8.375 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002495/0.005714, allocations: 118 kB / 327.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.005722, allocations: 0 / 327.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.005732, allocations: 3.984 kB / 327.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.005738, allocations: 0 / 327.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.483e-05/0.005792, allocations: 19.98 kB / 327.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003091/0.006101, allocations: 253.6 kB / 327.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.288e-05/0.006194, allocations: 67.78 kB / 327.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.157e-05/0.006236, allocations: 38.56 kB / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.006258, allocations: 0 / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.006283, allocations: 42.56 kB / 328 MB, free: 12.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.006284, allocations: 0 / 328 MB, free: 12.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002152/0.006499, allocations: 85.84 kB / 328.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.006558, allocations: 106.8 kB / 328.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.006666, allocations: 152.8 kB / 328.3 MB, free: 11.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.006678, allocations: 25.7 kB / 328.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.29e-05/0.006721, allocations: 92.08 kB / 328.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.006735, allocations: 4 kB / 328.4 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.006766, allocations: 21.66 kB / 328.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.67e-05/0.006842, allocations: 314.8 kB / 328.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.536e-05/0.006868, allocations: 11.98 kB / 328.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.86e-05/0.006886, allocations: 8.031 kB / 328.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.404e-05/0.00693, allocations: 28.78 kB / 328.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.006932, allocations: 0 / 328.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.376e-05/0.006996, allocations: 41.69 kB / 328.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.007009, allocations: 4 kB / 328.9 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.007013, allocations: 4 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.007025, allocations: 0 / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.618e-05/0.007081, allocations: 3.984 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.007086, allocations: 8.094 kB / 328.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.626e-05/0.007102, allocations: 0 / 328.9 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.007109, allocations: 3.984 kB / 328.9 MB, free: 11.24 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (1): * Single equations (assignments): 1 * 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 6.533e-05/0.007174, allocations: 121.8 kB / 329 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.171e-05/0.007226, allocations: 53.59 kB / 329.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.007253, allocations: 15.95 kB / 329.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.007255, allocations: 0 / 329.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.007259, allocations: 0 / 329.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.007262, allocations: 4 kB / 329.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.00737, allocations: 136.8 kB / 329.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.007371, allocations: 8 kB / 329.2 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.604e-05/0.007407, allocations: 11.98 kB / 329.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.007409, allocations: 3.938 kB / 329.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-06/0.007415, allocations: 0 / 329.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.007417, allocations: 0 / 329.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.007418, allocations: 7.938 kB / 329.2 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.007536, allocations: 181 kB / 329.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.42e-05/0.00757, allocations: 23.92 kB / 329.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.053e-05/0.00758, allocations: 0 / 329.4 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.416e-05/0.007615, allocations: 8 kB / 329.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.697e-05/0.007642, allocations: 7.984 kB / 329.5 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.007646, allocations: 4 kB / 329.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.061e-05/0.007697, allocations: 111.2 kB / 329.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007697, allocations: 0 / 329.6 MB, free: 10.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001408/0.007838, allocations: 8 kB / 329.6 MB, free: 10.46 MB / 298.7 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.0002972/0.008135, allocations: 0.7024 MB / 330.3 MB, free: 9.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.56e-05/0.00823, allocations: 24.08 kB / 330.3 MB, free: 9.707 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.008232, allocations: 4 kB / 330.3 MB, free: 9.703 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.883e-05/0.008251, allocations: 11.92 kB / 330.3 MB, free: 9.691 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.008527, allocations: 31.94 kB / 330.4 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000923/0.00945, allocations: 1.326 MB / 331.7 MB, free: 8.242 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.784e-05/0.009518, allocations: 91.02 kB / 331.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.265e-05/0.009551, allocations: 4 kB / 331.8 MB, free: 8.129 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.439e-05/0.009595, allocations: 16.48 kB / 331.8 MB, free: 8.113 MB / 298.7 MB Notification: Performance of SimCode: time 4e-07/0.009595, allocations: 0 / 331.8 MB, free: 8.113 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01694/0.02653, allocations: 2.358 MB / 334.1 MB, free: 5.852 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.573/6.6, allocations: 0 / 334.1 MB, free: 5.852 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.197715195827186]