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.00125/0.00125, allocations: 105.8 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 60.69 kB / 306.3 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1164, allocations: 50.53 MB / 356.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002632/0.1191, allocations: 1.644 MB / 358.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008654/0.1199, allocations: 0.5415 MB / 359 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.097e-05/0.12, allocations: 3.938 kB / 359 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.518e-05/0.1201, allocations: 0 / 359 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001161/0.1202, allocations: 11.92 kB / 359 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.1205, allocations: 55.89 kB / 359 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.368e-05/0.1206, allocations: 47.84 kB / 359.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.533e-05/0.1207, allocations: 20.17 kB / 359.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.1208, allocations: 31.78 kB / 359.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.254e-05/0.1209, allocations: 23.86 kB / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.299e-05/0.1209, allocations: 0 / 359.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.124e-05/0.1209, allocations: 8 kB / 359.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.821e-05/0.121, allocations: 11.98 kB / 359.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.465e-05/0.121, allocations: 27.73 kB / 359.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.1211, allocations: 59.8 kB / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1212, allocations: 0 / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1212, allocations: 0 / 359.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1212, allocations: 0 / 359.3 MB, free: 11.78 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.0004283/0.1216, allocations: 387.3 kB / 359.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1216, allocations: 8.031 kB / 359.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/0.1218, allocations: 16.83 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.122, allocations: 197.4 kB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-06/0.122, allocations: 4.375 kB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/0.122, allocations: 7.922 kB / 359.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000252/0.1223, allocations: 117.9 kB / 360 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.1223, allocations: 0 / 360 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.277e-06/0.1223, allocations: 0 / 360 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.1223, allocations: 4 kB / 360 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.503e-05/0.1224, allocations: 27.91 kB / 360 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003285/0.1228, allocations: 282.5 kB / 360.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.1229, allocations: 67.78 kB / 360.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.782e-05/0.123, allocations: 34.64 kB / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.123, allocations: 0 / 360.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.123, allocations: 34.55 kB / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 3.076e-06/0.123, allocations: 0 / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002669/0.1233, allocations: 93.8 kB / 360.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.1234, allocations: 106.8 kB / 360.6 MB, free: 10.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.1235, allocations: 152 kB / 360.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.182e-05/0.1235, allocations: 29.64 kB / 360.8 MB, free: 9.992 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.461e-05/0.1236, allocations: 92.05 kB / 360.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.1236, allocations: 4 kB / 360.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.625e-05/0.1236, allocations: 21.7 kB / 360.9 MB, free: 9.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.25e-05/0.1237, allocations: 322.8 kB / 361.2 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.905e-05/0.1238, allocations: 7.984 kB / 361.2 MB, free: 9.535 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.035e-05/0.1238, allocations: 35.38 kB / 361.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.548e-05/0.1239, allocations: 47.42 kB / 361.3 MB, free: 9.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1239, allocations: 0 / 361.3 MB, free: 9.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001352/0.1241, allocations: 73.45 kB / 361.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.1241, allocations: 4 kB / 361.4 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.1241, allocations: 0 / 361.4 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.1241, allocations: 4 kB / 361.4 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.541e-05/0.1242, allocations: 11.98 kB / 361.4 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.1242, allocations: 4.125 kB / 361.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.646e-05/0.1243, allocations: 11.94 kB / 361.4 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.1243, allocations: 0 / 361.4 MB, free: 9.316 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 8.166e-05/0.1244, allocations: 125.8 kB / 361.6 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.66e-05/0.1245, allocations: 49.55 kB / 361.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.467e-05/0.1245, allocations: 15.86 kB / 361.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.1245, allocations: 0 / 361.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1245, allocations: 0 / 361.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.1245, allocations: 12 kB / 361.6 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001595/0.1247, allocations: 165.7 kB / 361.8 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1247, allocations: 8 kB / 361.8 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.315e-05/0.1248, allocations: 11.92 kB / 361.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1248, allocations: 4 kB / 361.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.1248, allocations: 0 / 361.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1248, allocations: 0 / 361.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1248, allocations: 4 kB / 361.8 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000177/0.125, allocations: 181.1 kB / 362 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.371e-05/0.1251, allocations: 89 kB / 362.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.1251, allocations: 0 / 362.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.899e-05/0.1252, allocations: 11.98 kB / 362.1 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.902e-05/0.1252, allocations: 3.938 kB / 362.1 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.1252, allocations: 4 kB / 362.1 MB, free: 8.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.032e-05/0.1253, allocations: 114.4 kB / 362.2 MB, free: 8.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1253, allocations: 7.938 kB / 362.2 MB, free: 8.418 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.1255, allocations: 4 kB / 362.2 MB, free: 8.414 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 8.758e-05/0.1256, allocations: 99 kB / 362.3 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001368/0.1258, allocations: 39.86 kB / 362.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1258, allocations: 0 / 362.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.793e-05/0.1258, allocations: 12.17 kB / 362.4 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.1262, allocations: 32.2 kB / 362.4 MB, free: 8.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003281/0.1265, allocations: 202.1 kB / 362.6 MB, free: 8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.1268, allocations: 0.6965 MB / 363.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.068e-05/0.1268, allocations: 3.984 kB / 363.3 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.524e-05/0.1268, allocations: 11.44 kB / 363.3 MB, free: 7.262 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1268, allocations: 0 / 363.3 MB, free: 7.262 MB / 302.1 MB Notification: Performance of Templates: time 0.002524/0.1294, allocations: 0.5399 MB / 363.9 MB, free: 6.73 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/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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches