Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008474/0.0008475, allocations: 95.25 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009884/0.0009885, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.7 MB / 247.5 MB, free: 9.504 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002764, allocations: 8 kB / 308.4 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1164, allocations: 51.52 MB / 359.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002642/0.1191, allocations: 1.599 MB / 361.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002353/0.1215, allocations: 1.224 MB / 362.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002063/0.1218, allocations: 4 kB / 362.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004228/0.1222, allocations: 63.73 kB / 362.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004941/0.1227, allocations: 115.6 kB / 362.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009633/0.1237, allocations: 195.1 kB / 363.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000319/0.124, allocations: 171.5 kB / 363.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.1242, allocations: 29.53 kB / 363.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.1244, allocations: 67.64 kB / 363.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.1245, allocations: 75.62 kB / 363.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.1246, allocations: 0 / 363.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.1247, allocations: 63.89 kB / 363.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.599e-05/0.1248, allocations: 43.78 kB / 363.5 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.125, allocations: 101.2 kB / 363.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003048/0.1253, allocations: 175.9 kB / 363.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1253, allocations: 0 / 363.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1253, allocations: 4 kB / 363.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1253, allocations: 0 / 363.8 MB, free: 9.129 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007496/0.1261, allocations: 0.5001 MB / 364.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1261, allocations: 8.031 kB / 364.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.01e-05/0.1262, allocations: 24.66 kB / 364.4 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003536/0.1266, allocations: 283.6 kB / 364.6 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.1266, allocations: 8.375 kB / 364.6 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.182e-05/0.1266, allocations: 8.125 kB / 364.6 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.127, allocations: 163.5 kB / 364.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.127, allocations: 3.984 kB / 364.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.127, allocations: 7.938 kB / 364.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.127, allocations: 0 / 364.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001132/0.1271, allocations: 43.92 kB / 364.9 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005345/0.1277, allocations: 382.4 kB / 365.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.1279, allocations: 119.9 kB / 365.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.594e-05/0.128, allocations: 42.56 kB / 365.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.1281, allocations: 4 kB / 365.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.1283, allocations: 83.31 kB / 365.5 MB, free: 7.246 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.013e-06/0.1283, allocations: 0 / 365.5 MB, free: 7.246 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004123/0.1287, allocations: 153.3 kB / 365.6 MB, free: 7.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.1288, allocations: 162.2 kB / 365.8 MB, free: 6.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003621/0.1292, allocations: 338.6 kB / 366.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.1292, allocations: 25.95 kB / 366.1 MB, free: 6.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.715e-05/0.1293, allocations: 140 kB / 366.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.1294, allocations: 7.812 kB / 366.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.959e-05/0.1294, allocations: 21.7 kB / 366.3 MB, free: 6.348 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1295, allocations: 334.8 kB / 366.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.261e-05/0.1296, allocations: 23.98 kB / 366.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.1297, allocations: 90.78 kB / 366.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.1299, allocations: 80.22 kB / 366.8 MB, free: 5.781 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.1299, allocations: 4 kB / 366.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002375/0.1302, allocations: 125.4 kB / 367 MB, free: 5.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1302, allocations: 8 kB / 367 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1302, allocations: 3.984 kB / 367 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.1302, allocations: 0 / 367 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.1303, allocations: 19.94 kB / 367 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.1303, allocations: 7.938 kB / 367 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.271e-05/0.1304, allocations: 15.83 kB / 367 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.1305, allocations: 4 kB / 367 MB, free: 5.59 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001592/0.1306, allocations: 174.1 kB / 367.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-05/0.1307, allocations: 65.41 kB / 367.2 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.93e-05/0.1308, allocations: 25.7 kB / 367.3 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1308, allocations: 4 kB / 367.3 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1308, allocations: 0 / 367.3 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.1308, allocations: 3.938 kB / 367.3 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000213/0.131, allocations: 237.6 kB / 367.5 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.131, allocations: 7.984 kB / 367.5 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.404e-05/0.1311, allocations: 11.94 kB / 367.5 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.1311, allocations: 4.062 kB / 367.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.1311, allocations: 8 kB / 367.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1312, allocations: 0 / 367.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1312, allocations: 0 / 367.5 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.1314, allocations: 166.4 kB / 367.7 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.1315, allocations: 116.8 kB / 367.8 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.1316, allocations: 8 kB / 367.8 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.925e-05/0.1317, allocations: 7.984 kB / 367.8 MB, free: 4.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/0.1317, allocations: 11.98 kB / 367.8 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.1317, allocations: 7.938 kB / 367.9 MB, free: 4.641 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002383/0.132, allocations: 241.9 kB / 368.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.132, allocations: 0 / 368.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002852/0.1323, allocations: 39.98 kB / 368.1 MB, free: 4.367 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001014/0.1333, allocations: 432.4 kB / 368.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002498/0.1336, allocations: 71.84 kB / 368.6 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1336, allocations: 0 / 368.6 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.02e-05/0.1337, allocations: 27.98 kB / 368.6 MB, free: 3.977 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.1341, allocations: 57.92 kB / 368.7 MB, free: 3.914 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007284/0.1349, allocations: 454.4 kB / 369.1 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003577/0.1353, allocations: 0.7361 MB / 369.9 MB, free: 2.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.809e-05/0.1353, allocations: 27.42 kB / 369.9 MB, free: 2.648 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1353, allocations: 0 / 369.9 MB, free: 2.648 MB / 302.1 MB Notification: Performance of Templates: time 0.2119/0.3472, allocations: 2.908 MB / 372.8 MB, free: 18.34 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches