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.001307/0.001307, allocations: 117 kB / 18.41 MB, free: 4.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 200.5 kB / 19.36 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 68.66 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1277, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.00403/0.1318, allocations: 1.896 MB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00206/0.1339, allocations: 1.185 MB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.134, allocations: 7.938 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006391/0.1347, allocations: 147.5 kB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004287/0.1351, allocations: 159.4 kB / 362.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005544/0.1357, allocations: 166.9 kB / 362.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003053/0.136, allocations: 191.4 kB / 362.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.1362, allocations: 41.52 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.1363, allocations: 83.62 kB / 362.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.1365, allocations: 75.62 kB / 362.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.122e-05/0.1366, allocations: 8 kB / 362.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.1367, allocations: 51.97 kB / 362.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.1369, allocations: 51.77 kB / 363 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.137, allocations: 67.55 kB / 363 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004349/0.1374, allocations: 215.2 kB / 363.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.1374, allocations: 0 / 363.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1374, allocations: 0 / 363.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.1375, allocations: 0 / 363.2 MB, free: 9.008 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.001018/0.1385, allocations: 0.5234 MB / 363.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.1386, allocations: 8.031 kB / 363.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.838e-05/0.1387, allocations: 24.66 kB / 363.8 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004673/0.1391, allocations: 270.8 kB / 364 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.1392, allocations: 384 / 364 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.1392, allocations: 12.12 kB / 364.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004511/0.1397, allocations: 146.7 kB / 364.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.1397, allocations: 0 / 364.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.1397, allocations: 4 kB / 364.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.1397, allocations: 7.938 kB / 364.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.1399, allocations: 27.98 kB / 364.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007106/0.1406, allocations: 366.3 kB / 364.6 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002822/0.1409, allocations: 115.9 kB / 364.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.761e-05/0.141, allocations: 42.56 kB / 364.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.141, allocations: 0 / 364.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.1412, allocations: 75.33 kB / 364.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.1413, allocations: 4 kB / 364.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004385/0.1417, allocations: 137.4 kB / 365 MB, free: 7.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.1418, allocations: 136.5 kB / 365.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.1422, allocations: 272.9 kB / 365.4 MB, free: 6.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.1423, allocations: 29.7 kB / 365.4 MB, free: 6.562 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.1424, allocations: 112.1 kB / 365.5 MB, free: 6.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.1424, allocations: 24 kB / 365.5 MB, free: 6.426 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.782e-05/0.1425, allocations: 29.7 kB / 365.6 MB, free: 6.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1427, allocations: 338.8 kB / 365.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.429e-05/0.1428, allocations: 19.94 kB / 365.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.1429, allocations: 66.25 kB / 366 MB, free: 5.945 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.1431, allocations: 84.25 kB / 366.1 MB, free: 5.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1431, allocations: 0 / 366.1 MB, free: 5.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002133/0.1433, allocations: 113.4 kB / 366.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.1433, allocations: 8.125 kB / 366.2 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1433, allocations: 0 / 366.2 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/0.1434, allocations: 4 kB / 366.2 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.1435, allocations: 15.98 kB / 366.2 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.1435, allocations: 4 kB / 366.2 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.743e-05/0.1436, allocations: 11.84 kB / 366.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.1436, allocations: 4 kB / 366.2 MB, free: 5.684 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.000144/0.1437, allocations: 147.3 kB / 366.4 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.1438, allocations: 73.38 kB / 366.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.885e-05/0.1439, allocations: 25.7 kB / 366.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.1439, allocations: 0 / 366.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.1439, allocations: 0 / 366.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.144, allocations: 7.938 kB / 366.5 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.1442, allocations: 233.4 kB / 366.7 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1442, allocations: 0 / 366.7 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.657e-05/0.1442, allocations: 7.984 kB / 366.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1442, allocations: 4 kB / 366.7 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.1442, allocations: 4 kB / 366.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.1443, allocations: 8.062 kB / 366.7 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1443, allocations: 0 / 366.7 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002496/0.1445, allocations: 158.6 kB / 366.9 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.755e-05/0.1446, allocations: 108.9 kB / 367 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.1447, allocations: 0 / 367 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.655e-05/0.1447, allocations: 15.98 kB / 367 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/0.1448, allocations: 4 kB / 367 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.1448, allocations: 7.938 kB / 367 MB, free: 4.789 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.145, allocations: 200.5 kB / 367.2 MB, free: 4.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.145, allocations: 0 / 367.2 MB, free: 4.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002612/0.1453, allocations: 31.91 kB / 367.2 MB, free: 4.559 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.001148/0.1465, allocations: 415.3 kB / 367.6 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002438/0.1467, allocations: 71.91 kB / 367.7 MB, free: 4.215 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.1467, allocations: 8 kB / 367.7 MB, free: 4.207 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.61e-05/0.1468, allocations: 16 kB / 367.7 MB, free: 4.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.1472, allocations: 68.95 kB / 367.8 MB, free: 4.129 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006878/0.1479, allocations: 309.1 kB / 368.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005161/0.1485, allocations: 0.7319 MB / 368.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.504e-05/0.1486, allocations: 21.53 kB / 368.8 MB, free: 3.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.1486, allocations: 23.44 kB / 368.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1486, allocations: 0 / 368.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of Templates: time 0.006961/0.1556, allocations: 2.432 MB / 371.3 MB, free: 0.5781 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 cvode -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