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.001303/0.001303, allocations: 114.7 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 59.34 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1165, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.004205/0.1208, allocations: 1.579 MB / 360.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1221, allocations: 0.5415 MB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.843e-05/0.1222, allocations: 0 / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.424e-05/0.1223, allocations: 7.875 kB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.1225, allocations: 7.938 kB / 361 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004908/0.123, allocations: 67.75 kB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.1232, allocations: 47.84 kB / 361.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.1233, allocations: 24.16 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001388/0.1235, allocations: 27.86 kB / 361.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.1236, allocations: 23.86 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.1236, allocations: 0 / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.368e-05/0.1237, allocations: 8 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.737e-05/0.1238, allocations: 19.91 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.416e-05/0.1238, allocations: 23.81 kB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.124, allocations: 63.73 kB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.124, allocations: 4 kB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.124, allocations: 0 / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1241, allocations: 0 / 361.3 MB, free: 10.89 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.0006293/0.1247, allocations: 383 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.1248, allocations: 12.03 kB / 361.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.125, allocations: 16.84 kB / 361.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.1253, allocations: 212.2 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.1254, allocations: 4.375 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.1254, allocations: 7.938 kB / 362 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.1257, allocations: 117.9 kB / 362.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1258, allocations: 4 kB / 362.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.1258, allocations: 0 / 362.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.1258, allocations: 0 / 362.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.1259, allocations: 23.92 kB / 362.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003786/0.1263, allocations: 278.5 kB / 362.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.1264, allocations: 67.8 kB / 362.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.492e-05/0.1265, allocations: 34.62 kB / 362.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.1266, allocations: 0 / 362.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/0.1266, allocations: 50.44 kB / 362.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.373e-06/0.1266, allocations: 0 / 362.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003257/0.127, allocations: 85.5 kB / 362.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.612e-05/0.127, allocations: 102.8 kB / 362.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.1272, allocations: 150.1 kB / 362.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.1272, allocations: 29.7 kB / 362.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.331e-05/0.1273, allocations: 96.03 kB / 363 MB, free: 8.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.1274, allocations: 4 kB / 363 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.1274, allocations: 13.72 kB / 363 MB, free: 8.969 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1276, allocations: 318.8 kB / 363.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.379e-05/0.1276, allocations: 11.94 kB / 363.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.71e-05/0.1277, allocations: 47.34 kB / 363.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001171/0.1278, allocations: 43.36 kB / 363.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1278, allocations: 0 / 363.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001822/0.128, allocations: 77.52 kB / 363.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1281, allocations: 8 kB / 363.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1281, allocations: 0 / 363.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.1281, allocations: 0 / 363.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.368e-05/0.1282, allocations: 11.98 kB / 363.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.1282, allocations: 0 / 363.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.7e-05/0.1283, allocations: 7.938 kB / 363.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.1283, allocations: 4 kB / 363.5 MB, free: 8.41 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.0001054/0.1284, allocations: 125.8 kB / 363.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.1285, allocations: 49.59 kB / 363.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.258e-05/0.1286, allocations: 11.88 kB / 363.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.1286, allocations: 7.984 kB / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.1286, allocations: 0 / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.1286, allocations: 3.938 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002194/0.1288, allocations: 169.7 kB / 363.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1289, allocations: 0 / 363.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.616e-05/0.1289, allocations: 19.92 kB / 363.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.129, allocations: 0 / 363.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.129, allocations: 8.062 kB / 363.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.129, allocations: 0 / 363.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.129, allocations: 0 / 363.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002319/0.1292, allocations: 177.1 kB / 364.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.925e-05/0.1293, allocations: 97 kB / 364.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.1293, allocations: 4 kB / 364.2 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.237e-05/0.1294, allocations: 3.938 kB / 364.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.171e-05/0.1295, allocations: 11.92 kB / 364.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.1295, allocations: 0 / 364.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.716e-05/0.1296, allocations: 110.3 kB / 364.3 MB, free: 7.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1296, allocations: 3.938 kB / 364.3 MB, free: 7.516 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000327/0.13, allocations: 8 kB / 364.3 MB, free: 7.508 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.0001206/0.1301, allocations: 99.23 kB / 364.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001843/0.1303, allocations: 35.92 kB / 364.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.1303, allocations: 0 / 364.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.014e-05/0.1304, allocations: 19.92 kB / 364.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000447/0.1308, allocations: 20.02 kB / 364.5 MB, free: 7.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004307/0.1313, allocations: 192.6 kB / 364.7 MB, free: 7.109 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.1316, allocations: 0.6924 MB / 365.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.836e-05/0.1316, allocations: 0 / 365.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.999e-05/0.1317, allocations: 11.44 kB / 365.4 MB, free: 6.379 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1317, allocations: 0 / 365.4 MB, free: 6.379 MB / 302.1 MB Notification: Performance of Templates: time 0.003966/0.1357, allocations: 0.5951 MB / 366 MB, free: 5.797 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 -s gbode -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