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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009895/0.0009895, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002744, allocations: 8 kB / 308.4 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1171, allocations: 51.52 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002225/0.1194, allocations: 1.313 MB / 361.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.1205, allocations: 0.5222 MB / 361.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.1206, allocations: 4 kB / 361.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.206e-05/0.1206, allocations: 3.938 kB / 361.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.1208, allocations: 11.92 kB / 361.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003626/0.1212, allocations: 51.83 kB / 361.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.1213, allocations: 43.86 kB / 361.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.1214, allocations: 16.16 kB / 361.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001319/0.1216, allocations: 23.92 kB / 361.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.76e-05/0.1216, allocations: 27.86 kB / 361.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.773e-05/0.1217, allocations: 0 / 361.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.179e-05/0.1217, allocations: 11.92 kB / 361.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.262e-05/0.1218, allocations: 11.92 kB / 362 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.575e-05/0.1218, allocations: 49.52 kB / 362 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000134/0.122, allocations: 43.86 kB / 362 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.122, allocations: 0 / 362 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.122, allocations: 0 / 362 MB, free: 11.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.122, allocations: 0 / 362 MB, free: 11.16 MB / 302.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.0005241/0.1225, allocations: 371.5 kB / 362.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.1226, allocations: 12.03 kB / 362.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001717/0.1228, allocations: 20.83 kB / 362.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.123, allocations: 192.7 kB / 362.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.123, allocations: 384 / 362.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.258e-05/0.1231, allocations: 11.92 kB / 362.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.1234, allocations: 121.9 kB / 362.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1234, allocations: 0 / 362.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.1234, allocations: 3.938 kB / 362.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1234, allocations: 0 / 362.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.399e-05/0.1235, allocations: 27.98 kB / 362.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000395/0.1239, allocations: 290.4 kB / 363.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.1241, allocations: 75.78 kB / 363.1 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.226e-05/0.1241, allocations: 34.58 kB / 363.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.1242, allocations: 4 kB / 363.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.351e-05/0.1243, allocations: 34.55 kB / 363.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 3.015e-06/0.1243, allocations: 4 kB / 363.2 MB, free: 9.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002955/0.1246, allocations: 85.52 kB / 363.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.425e-05/0.1247, allocations: 118.7 kB / 363.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.1248, allocations: 150.1 kB / 363.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.1248, allocations: 29.7 kB / 363.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.221e-05/0.1249, allocations: 88.14 kB / 363.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.595e-05/0.1249, allocations: 4 kB / 363.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.58e-05/0.1249, allocations: 9.719 kB / 363.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.125, allocations: 318.8 kB / 364 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.411e-05/0.1251, allocations: 8 kB / 364 MB, free: 8.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.745e-05/0.1252, allocations: 43.42 kB / 364.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.1253, allocations: 47.36 kB / 364.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1253, allocations: 0 / 364.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001528/0.1255, allocations: 81.52 kB / 364.2 MB, free: 8.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1255, allocations: 7.938 kB / 364.2 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.1255, allocations: 4 kB / 364.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1255, allocations: 0 / 364.2 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.917e-05/0.1256, allocations: 11.98 kB / 364.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.1256, allocations: 0 / 364.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.823e-05/0.1257, allocations: 12.06 kB / 364.2 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.1257, allocations: 4 kB / 364.2 MB, free: 8.672 MB / 302.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.0001039/0.1258, allocations: 117.8 kB / 364.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.833e-05/0.1259, allocations: 57.53 kB / 364.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.848e-05/0.1259, allocations: 7.875 kB / 364.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.126, allocations: 7.984 kB / 364.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.126, allocations: 0 / 364.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.126, allocations: 3.938 kB / 364.4 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.1262, allocations: 173.7 kB / 364.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1262, allocations: 0 / 364.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.099e-05/0.1262, allocations: 11.98 kB / 364.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1263, allocations: 4 kB / 364.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.1263, allocations: 0 / 364.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1263, allocations: 0 / 364.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1263, allocations: 3.938 kB / 364.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002034/0.1265, allocations: 193 kB / 364.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.284e-05/0.1266, allocations: 93 kB / 364.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.1266, allocations: 0 / 364.9 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.085e-05/0.1267, allocations: 4 kB / 364.9 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.1268, allocations: 7.922 kB / 364.9 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.972e-06/0.1268, allocations: 4 kB / 364.9 MB, free: 7.887 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.501e-05/0.1269, allocations: 110.8 kB / 365 MB, free: 7.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1269, allocations: 4 kB / 365 MB, free: 7.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000236/0.1271, allocations: 8 kB / 365 MB, free: 7.77 MB / 302.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.0001092/0.1272, allocations: 99.23 kB / 365.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001462/0.1274, allocations: 35.86 kB / 365.1 MB, free: 7.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1274, allocations: 8.25 kB / 365.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.48e-05/0.1275, allocations: 7.984 kB / 365.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000382/0.1279, allocations: 30.69 kB / 365.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000415/0.1283, allocations: 244.2 kB / 365.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.1286, allocations: 0.6887 MB / 366.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.385e-05/0.1286, allocations: 11.44 kB / 366.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1286, allocations: 0 / 366.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of Templates: time 0.002484/0.1311, allocations: 0.8241 MB / 367 MB, free: 5.758 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.makefile (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 & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches