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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008352/0.0008352, allocations: 86.77 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009162/0.0009162, allocations: 183.2 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.3 MB / 241.2 MB, free: 5.277 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002963/0.0002963, allocations: 9.203 kB / 300.8 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1227, allocations: 50.43 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002591/0.1253, allocations: 1.275 MB / 352.5 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009541/0.1263, allocations: 459.2 kB / 353 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.1265, allocations: 0 / 353 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.559e-05/0.1265, allocations: 3.938 kB / 353 MB, free: 9.848 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001954/0.1267, allocations: 15.94 kB / 353 MB, free: 9.832 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003838/0.1271, allocations: 43.27 kB / 353 MB, free: 9.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001294/0.1272, allocations: 43.86 kB / 353.1 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.1274, allocations: 16.09 kB / 353.1 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.345e-05/0.1274, allocations: 15.94 kB / 353.1 MB, free: 9.719 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.545e-05/0.1275, allocations: 19.86 kB / 353.1 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.1275, allocations: 0 / 353.1 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.531e-05/0.1276, allocations: 4 kB / 353.1 MB, free: 9.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.097e-05/0.1276, allocations: 15.92 kB / 353.1 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.727e-05/0.1277, allocations: 33.7 kB / 353.2 MB, free: 9.641 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.1278, allocations: 39.92 kB / 353.2 MB, free: 9.602 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.848e-06/0.1278, allocations: 0 / 353.2 MB, free: 9.602 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.1278, allocations: 0 / 353.2 MB, free: 9.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.1278, allocations: 0 / 353.2 MB, free: 9.602 MB / 286.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.0006857/0.1285, allocations: 367.1 kB / 353.6 MB, free: 9.195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.1286, allocations: 11.97 kB / 353.6 MB, free: 9.184 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.676e-05/0.1286, allocations: 19.8 kB / 353.6 MB, free: 9.164 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.1289, allocations: 194.9 kB / 353.8 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.1289, allocations: 0 / 353.8 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.129, allocations: 4 kB / 353.8 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004232/0.1294, allocations: 117.9 kB / 353.9 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1294, allocations: 0 / 353.9 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.1294, allocations: 3.953 kB / 353.9 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.1294, allocations: 4 kB / 353.9 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.805e-05/0.1295, allocations: 27.92 kB / 354 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004667/0.13, allocations: 274.6 kB / 354.2 MB, free: 8.434 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.1301, allocations: 67.8 kB / 354.3 MB, free: 8.34 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.023e-05/0.1302, allocations: 38.62 kB / 354.3 MB, free: 8.293 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.55e-05/0.1303, allocations: 7.938 kB / 354.3 MB, free: 8.285 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.993e-05/0.1303, allocations: 38.45 kB / 354.4 MB, free: 8.238 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.1303, allocations: 0 / 354.4 MB, free: 8.238 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.000292/0.1306, allocations: 93.81 kB / 354.5 MB, free: 8.141 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002115/0.1308, allocations: 110.8 kB / 354.6 MB, free: 8.008 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.131, allocations: 140.5 kB / 354.7 MB, free: 7.863 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.131, allocations: 25.7 kB / 354.7 MB, free: 7.832 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.874e-05/0.1311, allocations: 96.12 kB / 354.8 MB, free: 7.734 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.1311, allocations: 3.906 kB / 354.8 MB, free: 7.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-06/0.1311, allocations: 0 / 354.8 MB, free: 7.73 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1312, allocations: 318.9 kB / 355.1 MB, free: 7.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.259e-05/0.1313, allocations: 11.98 kB / 355.2 MB, free: 7.398 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.23e-05/0.1313, allocations: 39.42 kB / 355.2 MB, free: 7.348 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.877e-05/0.1314, allocations: 12 kB / 355.2 MB, free: 7.336 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1314, allocations: 0 / 355.2 MB, free: 7.336 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001355/0.1315, allocations: 77.56 kB / 355.3 MB, free: 7.254 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.1316, allocations: 9.969 kB / 355.3 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1316, allocations: 4 kB / 355.3 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.1316, allocations: 4.062 kB / 355.3 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.742e-05/0.1317, allocations: 15.98 kB / 355.3 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.1317, allocations: 0 / 355.3 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.34e-05/0.1318, allocations: 7.906 kB / 355.3 MB, free: 7.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.1318, allocations: 4 kB / 355.3 MB, free: 7.211 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.771e-05/0.1319, allocations: 113.8 kB / 355.4 MB, free: 7.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.73e-05/0.132, allocations: 57.48 kB / 355.5 MB, free: 7.027 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.274e-05/0.132, allocations: 11.94 kB / 355.5 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.132, allocations: 11.98 kB / 355.5 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.132, allocations: 0 / 355.5 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.132, allocations: 0 / 355.5 MB, free: 7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.1322, allocations: 173.6 kB / 355.7 MB, free: 6.781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1322, allocations: 0 / 355.7 MB, free: 6.781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.192e-05/0.1323, allocations: 15.98 kB / 355.7 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1323, allocations: 0 / 355.7 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.1323, allocations: 7.953 kB / 355.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1323, allocations: 0 / 355.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1323, allocations: 0 / 355.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002187/0.1326, allocations: 185.1 kB / 355.9 MB, free: 6.555 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.085e-05/0.1327, allocations: 97 kB / 356 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.1327, allocations: 0 / 356 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.083e-05/0.1328, allocations: 11.95 kB / 356 MB, free: 6.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.1328, allocations: 3.984 kB / 356 MB, free: 6.426 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.1329, allocations: 4 kB / 356 MB, free: 6.422 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.388e-05/0.1329, allocations: 107.2 kB / 356.1 MB, free: 6.316 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.133, allocations: 0 / 356.1 MB, free: 6.316 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002239/0.1332, allocations: 4 kB / 356.1 MB, free: 6.312 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002619/0.1335, allocations: 103.2 kB / 356.2 MB, free: 6.203 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001798/0.1336, allocations: 39.92 kB / 356.3 MB, free: 6.164 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1336, allocations: 0 / 356.3 MB, free: 6.164 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.075e-05/0.1337, allocations: 8 kB / 356.3 MB, free: 6.156 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/0.1342, allocations: 25.5 kB / 356.3 MB, free: 6.133 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005223/0.1347, allocations: 211 kB / 356.5 MB, free: 5.891 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.1351, allocations: 0.6887 MB / 357.2 MB, free: 5.176 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.304e-05/0.1351, allocations: 4.188 kB / 357.2 MB, free: 5.172 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.388e-05/0.1352, allocations: 11.44 kB / 357.2 MB, free: 5.16 MB / 286.1 MB Notification: Performance of SimCode: time 2.705e-06/0.1352, allocations: 0 / 357.2 MB, free: 5.16 MB / 286.1 MB Notification: Performance of Templates: time 0.002651/0.1378, allocations: 0.5201 MB / 357.7 MB, free: 4.645 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches