Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007911/0.0007912, allocations: 89.45 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000846/0.0008459, allocations: 177.9 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003786/0.0003786, allocations: 11.94 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1271, allocations: 50.42 MB / 351.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002489/0.1296, allocations: 1.539 MB / 353.4 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.1314, allocations: 0.9823 MB / 354.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.1316, allocations: 4 kB / 354.4 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000633/0.1322, allocations: 155.6 kB / 354.5 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002959/0.1325, allocations: 107.6 kB / 354.6 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005016/0.133, allocations: 164.5 kB / 354.8 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002961/0.1333, allocations: 203.4 kB / 355 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.1334, allocations: 21.55 kB / 355 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.1336, allocations: 75.62 kB / 355.1 MB, free: 472 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.1338, allocations: 83.61 kB / 355.1 MB, free: 388 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.443e-05/0.1338, allocations: 4 kB / 355.1 MB, free: 384 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001242/0.1339, allocations: 35.98 kB / 355.2 MB, free: 348 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.532e-05/0.134, allocations: 43.83 kB / 355.2 MB, free: 304 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.1341, allocations: 109.2 kB / 355.3 MB, free: 188 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003191/0.1345, allocations: 203.6 kB / 355.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1345, allocations: 0 / 355.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1345, allocations: 0 / 355.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.1345, allocations: 0 / 355.5 MB, free: 15.98 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.000979/0.1355, allocations: 0.5041 MB / 356 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.1355, allocations: 12.03 kB / 356 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.439e-05/0.1356, allocations: 24.67 kB / 356.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.136, allocations: 254.8 kB / 356.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.507e-05/0.136, allocations: 7.938 kB / 356.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.1361, allocations: 8 kB / 356.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.1363, allocations: 117.9 kB / 356.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.1364, allocations: 7.938 kB / 356.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.1364, allocations: 0 / 356.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.1364, allocations: 4 kB / 356.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.1366, allocations: 47.97 kB / 356.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008355/0.1374, allocations: 0.6143 MB / 357.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002637/0.1377, allocations: 115.9 kB / 357.2 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.1378, allocations: 54.56 kB / 357.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.1378, allocations: 11.92 kB / 357.3 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.1381, allocations: 121.9 kB / 357.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.422e-06/0.1381, allocations: 0 / 357.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004964/0.1386, allocations: 177.3 kB / 357.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.1387, allocations: 136.5 kB / 357.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003392/0.1391, allocations: 284.9 kB / 358 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.779e-05/0.1391, allocations: 33.7 kB / 358 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001133/0.1392, allocations: 128.5 kB / 358.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.005e-05/0.1393, allocations: 23.78 kB / 358.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.1393, allocations: 21.7 kB / 358.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1395, allocations: 334.8 kB / 358.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/0.1396, allocations: 31.92 kB / 358.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.1397, allocations: 85.98 kB / 358.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.1399, allocations: 96.7 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1399, allocations: 0 / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00028/0.1402, allocations: 153.3 kB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1402, allocations: 4 kB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1402, allocations: 4 kB / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.1403, allocations: 0 / 358.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.661e-05/0.1404, allocations: 19.92 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1404, allocations: 3.938 kB / 358.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.1405, allocations: 23.89 kB / 358.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.1405, allocations: 4.094 kB / 359 MB, free: 12.21 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.0001404/0.1407, allocations: 149.7 kB / 359.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.382e-05/0.1407, allocations: 15.81 kB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.563e-05/0.1408, allocations: 29.7 kB / 359.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1408, allocations: 4 kB / 359.1 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.1408, allocations: 3.938 kB / 359.2 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1408, allocations: 3.938 kB / 359.2 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.141, allocations: 245.5 kB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1411, allocations: 3.938 kB / 359.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.784e-05/0.1411, allocations: 8 kB / 359.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.1411, allocations: 4 kB / 359.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.1411, allocations: 0 / 359.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1411, allocations: 0 / 359.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.1412, allocations: 7.938 kB / 359.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003067/0.1415, allocations: 186.4 kB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.556e-05/0.1415, allocations: 96.92 kB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/0.1416, allocations: 0 / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.1417, allocations: 19.98 kB / 359.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.737e-05/0.1418, allocations: 15.91 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/0.1418, allocations: 16.12 kB / 359.7 MB, free: 11.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.142, allocations: 208.5 kB / 359.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.142, allocations: 4 kB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002728/0.1423, allocations: 39.91 kB / 360 MB, free: 11.07 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.001058/0.1434, allocations: 418.4 kB / 360.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000294/0.1437, allocations: 95.84 kB / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1437, allocations: 0 / 360.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.1438, allocations: 60.47 kB / 360.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.1442, allocations: 40.52 kB / 360.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006501/0.1449, allocations: 384.2 kB / 361 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.1452, allocations: 0.7322 MB / 361.7 MB, free: 9.445 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.772e-05/0.1453, allocations: 29.47 kB / 361.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.34e-05/0.1454, allocations: 23.42 kB / 361.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1454, allocations: 0 / 361.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of Templates: time 0.006368/0.1518, allocations: 2.527 MB / 364.3 MB, free: 6.895 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches