Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_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.001101/0.001101, allocations: 107.3 kB / 18.36 MB, free: 4.641 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.001217/0.001217, allocations: 192 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.1 MB / 225.2 MB, free: 12.28 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 51.94 kB / 282.1 MB, free: 2.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1205, allocations: 46.63 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003982/0.1246, allocations: 1.824 MB / 330.5 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.1264, allocations: 0.9605 MB / 331.5 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.1266, allocations: 0 / 331.5 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007884/0.1274, allocations: 163.5 kB / 331.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003593/0.1278, allocations: 123.5 kB / 331.8 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005041/0.1283, allocations: 155.6 kB / 331.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002864/0.1286, allocations: 207.4 kB / 332.1 MB, free: 328 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1287, allocations: 13.56 kB / 332.1 MB, free: 316 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.1289, allocations: 91.61 kB / 332.2 MB, free: 224 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.129, allocations: 87.61 kB / 332.3 MB, free: 136 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.928e-05/0.1291, allocations: 12 kB / 332.3 MB, free: 124 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.1292, allocations: 55.97 kB / 332.4 MB, free: 68 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.177e-05/0.1293, allocations: 51.83 kB / 332.4 MB, free: 16 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.1294, allocations: 79.61 kB / 332.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.1297, allocations: 211.2 kB / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1297, allocations: 3.938 kB / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1297, allocations: 0 / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1298, allocations: 0 / 332.7 MB, free: 15.73 MB / 286.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.0009237/0.1307, allocations: 0.5273 MB / 333.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1307, allocations: 12.03 kB / 333.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.057e-05/0.1308, allocations: 20.66 kB / 333.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.1311, allocations: 262.8 kB / 333.5 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.1311, allocations: 8.375 kB / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.1312, allocations: 8.125 kB / 333.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.1314, allocations: 113.9 kB / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1314, allocations: 4 kB / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.1314, allocations: 4 kB / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.1315, allocations: 4 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.1316, allocations: 47.91 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000636/0.1322, allocations: 0.6026 MB / 334.3 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.1325, allocations: 127.8 kB / 334.5 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.1326, allocations: 58.56 kB / 334.5 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.1327, allocations: 0 / 334.5 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/0.1329, allocations: 121.9 kB / 334.6 MB, free: 13.58 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.1329, allocations: 0 / 334.6 MB, free: 13.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004498/0.1333, allocations: 173.4 kB / 334.8 MB, free: 13.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.1334, allocations: 128.5 kB / 334.9 MB, free: 13.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002743/0.1337, allocations: 292.8 kB / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.1337, allocations: 29.7 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.1338, allocations: 124.4 kB / 335.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.095e-05/0.1339, allocations: 31.64 kB / 335.4 MB, free: 12.76 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.364e-05/0.1339, allocations: 33.7 kB / 335.4 MB, free: 12.72 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.134, allocations: 338.9 kB / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.371e-05/0.1341, allocations: 31.98 kB / 335.8 MB, free: 12.35 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001128/0.1343, allocations: 81.88 kB / 335.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001702/0.1344, allocations: 100.2 kB / 336 MB, free: 12.14 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1345, allocations: 0 / 336 MB, free: 12.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002544/0.1347, allocations: 142 kB / 336.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.1347, allocations: 4 kB / 336.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1348, allocations: 0 / 336.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.1348, allocations: 7.938 kB / 336.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.458e-05/0.1349, allocations: 20.08 kB / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.1349, allocations: 0 / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.135, allocations: 23.92 kB / 336.2 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.135, allocations: 4 kB / 336.2 MB, free: 11.93 MB / 286.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.0001375/0.1352, allocations: 153.6 kB / 336.3 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.454e-05/0.1352, allocations: 19.72 kB / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.6e-05/0.1353, allocations: 29.64 kB / 336.4 MB, free: 11.73 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1353, allocations: 4 kB / 336.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1353, allocations: 4 kB / 336.4 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1353, allocations: 3.938 kB / 336.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/0.1355, allocations: 241.5 kB / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1356, allocations: 0 / 336.6 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.006e-05/0.1356, allocations: 8 kB / 336.6 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1356, allocations: 4 kB / 336.6 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.1356, allocations: 0 / 336.6 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1356, allocations: 0 / 336.6 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1356, allocations: 7.984 kB / 336.6 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.1359, allocations: 186.3 kB / 336.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.923e-05/0.136, allocations: 92.91 kB / 336.9 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/0.136, allocations: 8 kB / 336.9 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.288e-05/0.1361, allocations: 7.984 kB / 336.9 MB, free: 11.08 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.64e-05/0.1362, allocations: 19.92 kB / 336.9 MB, free: 11.06 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.1362, allocations: 7.984 kB / 336.9 MB, free: 11.05 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002143/0.1365, allocations: 216.5 kB / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1365, allocations: 0 / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.1367, allocations: 36 kB / 337.2 MB, free: 10.8 MB / 286.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.0009586/0.1377, allocations: 434 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002666/0.138, allocations: 83.91 kB / 337.7 MB, free: 10.3 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.138, allocations: 4.188 kB / 337.7 MB, free: 10.29 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.1381, allocations: 51.92 kB / 337.8 MB, free: 10.24 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003279/0.1385, allocations: 48.83 kB / 337.8 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005999/0.1391, allocations: 348.7 kB / 338.1 MB, free: 9.82 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.1394, allocations: 0.732 MB / 338.9 MB, free: 9.062 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.704e-05/0.1395, allocations: 25.55 kB / 338.9 MB, free: 9.039 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.122e-05/0.1396, allocations: 19.42 kB / 338.9 MB, free: 9.02 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1396, allocations: 7.938 kB / 338.9 MB, free: 9.012 MB / 286.1 MB Notification: Performance of Templates: time 0.006705/0.1463, allocations: 2.748 MB / 341.7 MB, free: 6.262 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches