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.001452/0.001452, allocations: 108.6 kB / 17.69 MB, free: 5.445 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.001687/0.001687, allocations: 191 kB / 18.63 MB, free: 4.512 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.413/1.413, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001029/0.00103, allocations: 51.48 kB / 302.1 MB, free: 5.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1306, allocations: 49.44 MB / 351.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004194/0.1349, allocations: 1.826 MB / 353.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.1372, allocations: 1.033 MB / 354.4 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.1373, allocations: 3.938 kB / 354.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007203/0.1381, allocations: 163.5 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003936/0.1385, allocations: 125.2 kB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005977/0.1391, allocations: 174.9 kB / 354.8 MB, free: 400 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003117/0.1394, allocations: 207.4 kB / 355 MB, free: 192 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000124/0.1396, allocations: 25.5 kB / 355 MB, free: 168 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.1397, allocations: 83.67 kB / 355.1 MB, free: 84 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.1399, allocations: 83.67 kB / 355.2 MB, free: 0 / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.358e-05/0.1399, allocations: 8.109 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000178/0.1401, allocations: 67.73 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.209e-05/0.1402, allocations: 39.91 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.1403, allocations: 75.53 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003598/0.1407, allocations: 219.2 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1407, allocations: 4 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1407, allocations: 0 / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.1408, allocations: 4 kB / 355.6 MB, free: 15.59 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.001028/0.1418, allocations: 0.5195 MB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1418, allocations: 12.03 kB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.163e-05/0.1419, allocations: 16.75 kB / 356.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003985/0.1423, allocations: 258.8 kB / 356.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.1424, allocations: 15.94 kB / 356.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.1424, allocations: 4 kB / 356.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002963/0.1427, allocations: 113.9 kB / 356.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.1427, allocations: 3.938 kB / 356.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.1427, allocations: 4 kB / 356.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1428, allocations: 0 / 356.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.143, allocations: 59.89 kB / 356.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008015/0.1438, allocations: 0.6026 MB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003349/0.1441, allocations: 131.9 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.1443, allocations: 46.56 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.1443, allocations: 4 kB / 357.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002902/0.1446, allocations: 121.9 kB / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.733e-06/0.1446, allocations: 0 / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006051/0.1453, allocations: 173.4 kB / 357.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.977e-05/0.1454, allocations: 140.4 kB / 357.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004074/0.1458, allocations: 289 kB / 358.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.093e-05/0.1458, allocations: 33.7 kB / 358.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.146, allocations: 120.4 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.333e-05/0.146, allocations: 27.77 kB / 358.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.863e-05/0.1461, allocations: 37.64 kB / 358.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.1463, allocations: 338.8 kB / 358.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.1464, allocations: 31.97 kB / 358.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.1466, allocations: 78 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002361/0.1468, allocations: 96.2 kB / 358.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1468, allocations: 4.031 kB / 358.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003697/0.1472, allocations: 141.3 kB / 359 MB, free: 11.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.1472, allocations: 8 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1472, allocations: 0 / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.1473, allocations: 4 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.1474, allocations: 15.92 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.1474, allocations: 8.562 kB / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.1476, allocations: 15.98 kB / 359 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.1476, allocations: 8.094 kB / 359 MB, free: 11.81 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.0001933/0.1478, allocations: 149.7 kB / 359.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.376e-05/0.1479, allocations: 23.72 kB / 359.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.713e-05/0.148, allocations: 25.7 kB / 359.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.148, allocations: 0 / 359.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.148, allocations: 7.938 kB / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.148, allocations: 0 / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003314/0.1484, allocations: 245.5 kB / 359.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1484, allocations: 0 / 359.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.019e-05/0.1484, allocations: 11.94 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1485, allocations: 0 / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.1485, allocations: 4 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1485, allocations: 0 / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.1485, allocations: 7.875 kB / 359.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000408/0.1489, allocations: 182.5 kB / 359.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.888e-05/0.149, allocations: 96.86 kB / 359.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.344e-05/0.1491, allocations: 4 kB / 359.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.1492, allocations: 11.98 kB / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.388e-05/0.1493, allocations: 19.92 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.1494, allocations: 4 kB / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002899/0.1496, allocations: 212.5 kB / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1497, allocations: 0 / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000447/0.1501, allocations: 39.98 kB / 360.1 MB, free: 10.68 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.001374/0.1515, allocations: 426.5 kB / 360.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003557/0.1519, allocations: 95.83 kB / 360.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1519, allocations: 0 / 360.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.1521, allocations: 47.98 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.1526, allocations: 51.62 kB / 360.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008246/0.1534, allocations: 348.8 kB / 361 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.1538, allocations: 0.7358 MB / 361.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000106/0.1539, allocations: 22.03 kB / 361.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.464e-05/0.154, allocations: 19.44 kB / 361.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.154, allocations: 0 / 361.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of Templates: time 0.007957/0.162, allocations: 2.754 MB / 364.5 MB, free: 6.32 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 -s cvode -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/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_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches