Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001141/0.001141, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 247.5 MB, free: 10.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 60.03 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1154, allocations: 50.52 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003578/0.1191, allocations: 1.903 MB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.1209, allocations: 1.188 MB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.121, allocations: 4 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000597/0.1216, allocations: 147.5 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003788/0.122, allocations: 159.4 kB / 362.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000473/0.1225, allocations: 166.8 kB / 362.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002455/0.1228, allocations: 191.4 kB / 362.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.1229, allocations: 37.52 kB / 362.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.123, allocations: 75.7 kB / 362.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.1231, allocations: 79.56 kB / 362.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.1232, allocations: 8 kB / 362.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.1233, allocations: 55.95 kB / 362.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.393e-05/0.1234, allocations: 43.84 kB / 362.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.755e-05/0.1235, allocations: 67.55 kB / 363 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003013/0.1238, allocations: 215.2 kB / 363.2 MB, free: 9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1238, allocations: 0 / 363.2 MB, free: 9 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.1238, allocations: 3.984 kB / 363.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1238, allocations: 0 / 363.2 MB, free: 8.996 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.0008021/0.1246, allocations: 0.5157 MB / 363.7 MB, free: 8.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1247, allocations: 12.03 kB / 363.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.359e-05/0.1248, allocations: 24.66 kB / 363.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003667/0.1251, allocations: 274.8 kB / 364 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.1252, allocations: 384 / 364 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.611e-05/0.1252, allocations: 16.12 kB / 364.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003674/0.1256, allocations: 138.7 kB / 364.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1256, allocations: 3.938 kB / 364.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.1256, allocations: 4 kB / 364.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.1256, allocations: 4 kB / 364.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.1257, allocations: 35.91 kB / 364.2 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004573/0.1262, allocations: 366.4 kB / 364.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.1264, allocations: 111.9 kB / 364.7 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.116e-05/0.1265, allocations: 46.5 kB / 364.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.1265, allocations: 0 / 364.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001511/0.1267, allocations: 71.39 kB / 364.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.1267, allocations: 4 kB / 364.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003489/0.1271, allocations: 141.3 kB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.1271, allocations: 136.5 kB / 365.1 MB, free: 6.855 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.1274, allocations: 276.8 kB / 365.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.1275, allocations: 29.7 kB / 365.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.736e-05/0.1275, allocations: 116.1 kB / 365.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.452e-05/0.1276, allocations: 19.98 kB / 365.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.624e-05/0.1276, allocations: 33.72 kB / 365.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1277, allocations: 334.8 kB / 365.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.595e-05/0.1278, allocations: 16 kB / 365.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.223e-05/0.1279, allocations: 69.98 kB / 366 MB, free: 5.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.128, allocations: 80.2 kB / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.128, allocations: 0 / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001848/0.1282, allocations: 117.7 kB / 366.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.1283, allocations: 4.125 kB / 366.2 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1283, allocations: 4 kB / 366.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.1283, allocations: 4 kB / 366.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.958e-05/0.1284, allocations: 15.92 kB / 366.2 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1284, allocations: 4 kB / 366.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.54e-05/0.1285, allocations: 11.84 kB / 366.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.1285, allocations: 7.938 kB / 366.2 MB, free: 5.66 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,sample1.u,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.0001161/0.1286, allocations: 143.4 kB / 366.4 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.769e-05/0.1287, allocations: 69.44 kB / 366.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.105e-05/0.1287, allocations: 25.7 kB / 366.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1287, allocations: 0 / 366.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1288, allocations: 4 kB / 366.5 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1288, allocations: 3.938 kB / 366.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.129, allocations: 233.5 kB / 366.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.129, allocations: 0 / 366.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.58e-05/0.129, allocations: 12 kB / 366.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.129, allocations: 0 / 366.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.129, allocations: 0 / 366.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.129, allocations: 8 kB / 366.7 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.129, allocations: 4 kB / 366.7 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002334/0.1293, allocations: 154.5 kB / 366.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.1294, allocations: 104.9 kB / 367 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.1294, allocations: 0 / 367 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.317e-05/0.1295, allocations: 11.98 kB / 367 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.416e-05/0.1296, allocations: 8 kB / 367 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.1296, allocations: 8.031 kB / 367 MB, free: 4.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001953/0.1298, allocations: 204.4 kB / 367.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1298, allocations: 0 / 367.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002594/0.1301, allocations: 35.89 kB / 367.2 MB, free: 4.543 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,sample1.u,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.0009998/0.1311, allocations: 405.5 kB / 367.6 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002179/0.1313, allocations: 83.84 kB / 367.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1313, allocations: 0 / 367.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.515e-05/0.1314, allocations: 19.98 kB / 367.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.1318, allocations: 74.39 kB / 367.8 MB, free: 4.113 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005408/0.1323, allocations: 317.1 kB / 368.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.1326, allocations: 0.7358 MB / 368.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.843e-05/0.1327, allocations: 17.55 kB / 368.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.041e-05/0.1328, allocations: 19.44 kB / 368.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1328, allocations: 0 / 368.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of Templates: time 0.006505/0.1393, allocations: 2.423 MB / 371.3 MB, free: 0.5625 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches