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.00139/0.001399, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.3 kB / 17.85 MB, free: 5.164 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.376/1.376, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 50.77 kB / 300.6 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1206, allocations: 49.44 MB / 350 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004058/0.1247, allocations: 1.821 MB / 351.9 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.1269, allocations: 1.021 MB / 352.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001956/0.1272, allocations: 7.938 kB / 352.9 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007499/0.1279, allocations: 171.5 kB / 353.1 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003927/0.1283, allocations: 127.5 kB / 353.2 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005721/0.1289, allocations: 175.1 kB / 353.4 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003315/0.1293, allocations: 207.4 kB / 353.6 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.1294, allocations: 29.55 kB / 353.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002342/0.1297, allocations: 83.62 kB / 353.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.1298, allocations: 87.66 kB / 353.8 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.412e-05/0.1299, allocations: 8 kB / 353.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.13, allocations: 51.92 kB / 353.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.1302, allocations: 47.84 kB / 353.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.1303, allocations: 79.52 kB / 353.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.1306, allocations: 207.7 kB / 354.1 MB, free: 332 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1307, allocations: 0 / 354.1 MB, free: 332 kB / 286.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1307, allocations: 4 kB / 354.1 MB, free: 328 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.1307, allocations: 3.938 kB / 354.1 MB, free: 324 kB / 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.0009135/0.1316, allocations: 0.5273 MB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.1316, allocations: 8.031 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.363e-05/0.1317, allocations: 20.73 kB / 354.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.1321, allocations: 254.9 kB / 354.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.911e-05/0.1321, allocations: 11.94 kB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.1321, allocations: 4 kB / 355 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.1324, allocations: 117.9 kB / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.1324, allocations: 0 / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.1324, allocations: 4 kB / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.543e-06/0.1324, allocations: 7.938 kB / 355.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002652/0.1327, allocations: 47.91 kB / 355.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007788/0.1335, allocations: 0.6104 MB / 355.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002564/0.1337, allocations: 127.9 kB / 355.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.1339, allocations: 50.56 kB / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.1339, allocations: 0 / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.1342, allocations: 133.8 kB / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.1342, allocations: 0 / 356.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005329/0.1348, allocations: 169.4 kB / 356.2 MB, free: 14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.1349, allocations: 136.5 kB / 356.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003228/0.1352, allocations: 284.9 kB / 356.6 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.1353, allocations: 33.83 kB / 356.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.388e-05/0.1354, allocations: 128.3 kB / 356.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.1354, allocations: 23.78 kB / 356.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-05/0.1355, allocations: 41.58 kB / 356.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1356, allocations: 330.8 kB / 357.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.439e-05/0.1357, allocations: 31.98 kB / 357.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.1359, allocations: 82 kB / 357.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000186/0.1361, allocations: 96.2 kB / 357.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1361, allocations: 0 / 357.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002823/0.1364, allocations: 145.3 kB / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.1364, allocations: 4 kB / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1364, allocations: 4 kB / 357.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.1364, allocations: 0.625 kB / 357.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.719e-05/0.1365, allocations: 15.98 kB / 357.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.1365, allocations: 3.938 kB / 357.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.1366, allocations: 15.98 kB / 357.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.1367, allocations: 8 kB / 357.6 MB, free: 12.54 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.0001285/0.1368, allocations: 153.7 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.924e-05/0.1368, allocations: 19.72 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.855e-05/0.1369, allocations: 29.69 kB / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1369, allocations: 4 kB / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1369, allocations: 3.938 kB / 357.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.1369, allocations: 3.984 kB / 357.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002206/0.1372, allocations: 241.5 kB / 358 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1372, allocations: 0 / 358 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.013e-05/0.1372, allocations: 8 kB / 358 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1372, allocations: 11.94 kB / 358 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.1372, allocations: 0 / 358 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.1373, allocations: 7.938 kB / 358 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1373, allocations: 3.938 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002978/0.1376, allocations: 174.5 kB / 358.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.87e-05/0.1376, allocations: 96.86 kB / 358.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.1377, allocations: 8 kB / 358.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.98e-05/0.1378, allocations: 11.98 kB / 358.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.1378, allocations: 15.92 kB / 358.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.1379, allocations: 7.984 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002055/0.1381, allocations: 212.5 kB / 358.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1381, allocations: 7.938 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002673/0.1384, allocations: 28 kB / 358.6 MB, free: 11.4 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.0009907/0.1394, allocations: 436.3 kB / 359 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.1397, allocations: 99.89 kB / 359.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1397, allocations: 0 / 359.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.1398, allocations: 51.91 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.1402, allocations: 48.31 kB / 359.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006278/0.1408, allocations: 349.3 kB / 359.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.1411, allocations: 0.728 MB / 360.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.723e-05/0.1412, allocations: 25.55 kB / 360.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.31e-05/0.1413, allocations: 23.42 kB / 360.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1413, allocations: 0 / 360.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of Templates: time 0.007488/0.1488, allocations: 2.747 MB / 363.1 MB, free: 7.039 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