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.001158/0.001158, allocations: 103.8 kB / 17.63 MB, free: 5.48 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: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 66.09 kB / 306.9 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1352, allocations: 50.53 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003836/0.139, allocations: 1.84 MB / 359.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1413, allocations: 1.181 MB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.1414, allocations: 3.938 kB / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006809/0.1421, allocations: 163.5 kB / 360.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000392/0.1425, allocations: 171.3 kB / 360.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003785/0.1429, allocations: 143.2 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002342/0.1431, allocations: 215.4 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.1433, allocations: 29.53 kB / 361.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.1434, allocations: 87.62 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.1435, allocations: 87.61 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.1435, allocations: 12 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.1437, allocations: 55.97 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.1438, allocations: 47.78 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.898e-05/0.1439, allocations: 83.53 kB / 361.6 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.1441, allocations: 215.6 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1442, allocations: 4 kB / 361.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1442, allocations: 4 kB / 361.8 MB, free: 9.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.1442, allocations: 0 / 361.8 MB, free: 9.742 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.000894/0.1451, allocations: 0.5312 MB / 362.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1451, allocations: 8.031 kB / 362.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.754e-05/0.1452, allocations: 20.66 kB / 362.3 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.1455, allocations: 266.8 kB / 362.6 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.1455, allocations: 8.312 kB / 362.6 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.332e-05/0.1455, allocations: 16.12 kB / 362.6 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.1458, allocations: 109.9 kB / 362.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1458, allocations: 0 / 362.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.1458, allocations: 3.984 kB / 362.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.1458, allocations: 7.938 kB / 362.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.146, allocations: 51.92 kB / 362.8 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006515/0.1467, allocations: 0.6026 MB / 363.4 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.147, allocations: 135.9 kB / 363.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.1471, allocations: 46.5 kB / 363.6 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.116e-05/0.1471, allocations: 8 kB / 363.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002185/0.1473, allocations: 114 kB / 363.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.1474, allocations: 0 / 363.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004658/0.1478, allocations: 173.3 kB / 363.9 MB, free: 7.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/0.1479, allocations: 140.5 kB / 364 MB, free: 7.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003018/0.1482, allocations: 301 kB / 364.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.1483, allocations: 25.7 kB / 364.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.605e-05/0.1484, allocations: 128.3 kB / 364.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.44e-05/0.1484, allocations: 27.66 kB / 364.5 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-05/0.1485, allocations: 29.7 kB / 364.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1486, allocations: 342.8 kB / 364.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.971e-05/0.1487, allocations: 27.98 kB / 364.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.1488, allocations: 81.98 kB / 364.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.149, allocations: 100.7 kB / 365 MB, free: 6.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1491, allocations: 4.031 kB / 365 MB, free: 6.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002601/0.1493, allocations: 141.3 kB / 365.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1493, allocations: 4 kB / 365.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.1494, allocations: 0 / 365.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1494, allocations: 7.984 kB / 365.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.13e-05/0.1495, allocations: 15.94 kB / 365.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.1495, allocations: 0 / 365.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.1496, allocations: 23.83 kB / 365.2 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.1496, allocations: 8.094 kB / 365.2 MB, free: 5.93 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.0001316/0.1498, allocations: 157.6 kB / 365.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.791e-05/0.1498, allocations: 19.81 kB / 365.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.449e-05/0.1499, allocations: 25.7 kB / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1499, allocations: 0 / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1499, allocations: 0 / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1499, allocations: 7.938 kB / 365.4 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002611/0.1502, allocations: 241.5 kB / 365.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1502, allocations: 4 kB / 365.7 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.903e-05/0.1502, allocations: 11.98 kB / 365.7 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1502, allocations: 3.938 kB / 365.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1503, allocations: 8 kB / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1503, allocations: 0 / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1503, allocations: 128 / 365.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003123/0.1506, allocations: 182.5 kB / 365.9 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.63e-05/0.1507, allocations: 100.8 kB / 366 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.1507, allocations: 4 kB / 366 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.1508, allocations: 15.92 kB / 366 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.868e-05/0.1509, allocations: 19.92 kB / 366 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.1509, allocations: 4 kB / 366 MB, free: 5.039 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002165/0.1512, allocations: 220.5 kB / 366.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1512, allocations: 0 / 366.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.1514, allocations: 39.98 kB / 366.3 MB, free: 4.781 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.00099/0.1524, allocations: 412.7 kB / 366.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002967/0.1527, allocations: 95.89 kB / 366.8 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1528, allocations: 0 / 366.8 MB, free: 4.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001348/0.1529, allocations: 55.91 kB / 366.8 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/0.1533, allocations: 63.47 kB / 366.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006723/0.154, allocations: 349 kB / 367.2 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.1544, allocations: 0.7436 MB / 368 MB, free: 3.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.492e-05/0.1545, allocations: 29.47 kB / 368 MB, free: 3.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.317e-05/0.1545, allocations: 27.36 kB / 368 MB, free: 3.102 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1546, allocations: 0 / 368 MB, free: 3.102 MB / 302.1 MB Notification: Performance of Templates: time 0.007024/0.1616, allocations: 2.761 MB / 370.8 MB, free: 372 kB / 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 -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/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_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches