Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.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.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 121 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001226/0.001226, allocations: 212.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.001831, allocations: 57.81 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.124, allocations: 50.54 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003235/0.1273, allocations: 1.842 MB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.1292, allocations: 1.177 MB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.248e-05/0.1293, allocations: 7.938 kB / 361.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005736/0.1299, allocations: 163.5 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003656/0.1302, allocations: 159.3 kB / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003375/0.1306, allocations: 151.5 kB / 362.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002397/0.1308, allocations: 219.4 kB / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.952e-05/0.1309, allocations: 25.53 kB / 362.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1311, allocations: 83.62 kB / 362.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.1312, allocations: 91.61 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.1312, allocations: 12 kB / 362.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.1314, allocations: 55.97 kB / 362.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.918e-05/0.1314, allocations: 55.77 kB / 362.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.75e-05/0.1315, allocations: 79.53 kB / 363 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002928/0.1318, allocations: 219.3 kB / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1319, allocations: 0 / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1319, allocations: 0 / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1319, allocations: 0 / 363.2 MB, free: 9.039 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008535/0.1327, allocations: 0.5351 MB / 363.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.1328, allocations: 11.97 kB / 363.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.832e-05/0.1328, allocations: 28.59 kB / 363.8 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.1331, allocations: 258.9 kB / 364 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.1332, allocations: 4.375 kB / 364 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.1332, allocations: 12.12 kB / 364.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.1334, allocations: 117.1 kB / 364.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1334, allocations: 0 / 364.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.1335, allocations: 8 kB / 364.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1335, allocations: 4 kB / 364.2 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001428/0.1336, allocations: 51.91 kB / 364.2 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006181/0.1342, allocations: 0.6026 MB / 364.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002434/0.1345, allocations: 131.8 kB / 365 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.1346, allocations: 50.55 kB / 365 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.1347, allocations: 4 kB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.1349, allocations: 125.8 kB / 365.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.1349, allocations: 0 / 365.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004421/0.1353, allocations: 173.4 kB / 365.3 MB, free: 6.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/0.1354, allocations: 132.6 kB / 365.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002874/0.1357, allocations: 300.9 kB / 365.7 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.1357, allocations: 29.7 kB / 365.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.984e-05/0.1358, allocations: 128.4 kB / 365.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.1359, allocations: 27.64 kB / 365.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.336e-05/0.1359, allocations: 37.7 kB / 366 MB, free: 6.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1361, allocations: 330.8 kB / 366.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.51e-05/0.1361, allocations: 27.98 kB / 366.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.1363, allocations: 93.92 kB / 366.4 MB, free: 5.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.1365, allocations: 104.2 kB / 366.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1365, allocations: 0 / 366.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000257/0.1368, allocations: 133.3 kB / 366.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.1368, allocations: 4 kB / 366.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.1368, allocations: 4 kB / 366.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.1368, allocations: 0 / 366.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.517e-05/0.1369, allocations: 23.92 kB / 366.7 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1369, allocations: 4 kB / 366.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.137, allocations: 24.55 kB / 366.7 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.137, allocations: 4 kB / 366.7 MB, free: 5.215 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: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001308/0.1372, allocations: 157.6 kB / 366.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.491e-05/0.1372, allocations: 19.81 kB / 366.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.488e-05/0.1373, allocations: 25.7 kB / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1373, allocations: 0 / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1373, allocations: 4 kB / 366.9 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1373, allocations: 7.875 kB / 366.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002382/0.1376, allocations: 249.5 kB / 367.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1376, allocations: 0 / 367.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.824e-05/0.1376, allocations: 8 kB / 367.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1376, allocations: 0 / 367.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.1376, allocations: 7.984 kB / 367.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1376, allocations: 0 / 367.2 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1376, allocations: 4 kB / 367.2 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003142/0.138, allocations: 182.4 kB / 367.3 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.333e-05/0.138, allocations: 92.83 kB / 367.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.1381, allocations: 8 kB / 367.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.49e-05/0.1382, allocations: 7.984 kB / 367.4 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.069e-05/0.1382, allocations: 23.91 kB / 367.5 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.1383, allocations: 4 kB / 367.5 MB, free: 4.328 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.1385, allocations: 216.5 kB / 367.7 MB, free: 4.113 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1385, allocations: 4 kB / 367.7 MB, free: 4.109 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.1388, allocations: 32 kB / 367.7 MB, free: 4.078 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: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * 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 (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0009755/0.1397, allocations: 414 kB / 368.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002984/0.14, allocations: 95.84 kB / 368.2 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1401, allocations: 0 / 368.2 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.1402, allocations: 56.16 kB / 368.3 MB, free: 3.652 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.1406, allocations: 59.94 kB / 368.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007003/0.1413, allocations: 356.9 kB / 368.7 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.1417, allocations: 0.7358 MB / 369.4 MB, free: 2.461 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.578e-05/0.1417, allocations: 21.55 kB / 369.4 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.452e-05/0.1418, allocations: 19.44 kB / 369.5 MB, free: 2.414 MB / 302.1 MB Notification: Performance of SimCode: time 1.854e-06/0.1418, allocations: 0 / 369.5 MB, free: 2.414 MB / 302.1 MB Notification: Performance of Templates: time 0.1904/0.3322, allocations: 2.766 MB / 372.2 MB, free: 19.84 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches