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.001872/0.001872, allocations: 112.2 kB / 17.17 MB, free: 6.32 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.002168/0.002168, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.506/2.506, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 47.09 kB / 300.6 MB, free: 6.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1439, allocations: 49.45 MB / 350 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004166/0.1481, allocations: 1.886 MB / 351.9 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002282/0.1504, allocations: 1.009 MB / 352.9 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.1506, allocations: 3.938 kB / 352.9 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008235/0.1515, allocations: 155.7 kB / 353.1 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003797/0.1519, allocations: 111.6 kB / 353.2 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006287/0.1525, allocations: 152.6 kB / 353.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003443/0.1529, allocations: 211.3 kB / 353.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.1531, allocations: 25.55 kB / 353.6 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.1532, allocations: 75.62 kB / 353.7 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001723/0.1534, allocations: 79.67 kB / 353.7 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.537e-05/0.1535, allocations: 4 kB / 353.7 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.1537, allocations: 43.97 kB / 353.8 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.1538, allocations: 43.78 kB / 353.8 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.1539, allocations: 75.53 kB / 353.9 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003204/0.1543, allocations: 160 kB / 354.1 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1543, allocations: 0 / 354.1 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1543, allocations: 4 kB / 354.1 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1543, allocations: 4 kB / 354.1 MB, free: 0.75 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.001201/0.1555, allocations: 0.5234 MB / 354.6 MB, free: 176 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.1556, allocations: 12.03 kB / 354.6 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.759e-05/0.1557, allocations: 20.73 kB / 354.6 MB, free: 144 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.1561, allocations: 258.8 kB / 354.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.1562, allocations: 7.938 kB / 354.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.722e-05/0.1562, allocations: 4 kB / 354.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.1566, allocations: 117.9 kB / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1566, allocations: 3.938 kB / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.1566, allocations: 4 kB / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1567, allocations: 0 / 355 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002286/0.1569, allocations: 55.91 kB / 355.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008944/0.1578, allocations: 0.5987 MB / 355.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003784/0.1582, allocations: 127.9 kB / 355.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.1584, allocations: 46.56 kB / 355.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.556e-05/0.1584, allocations: 7.938 kB / 355.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003343/0.1588, allocations: 126 kB / 356 MB, free: 14.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.364e-06/0.1588, allocations: 0 / 356 MB, free: 14.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006958/0.1595, allocations: 173.3 kB / 356.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.1596, allocations: 140.5 kB / 356.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004367/0.1601, allocations: 288.8 kB / 356.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.106e-05/0.1601, allocations: 33.83 kB / 356.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.1602, allocations: 124.3 kB / 356.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.814e-05/0.1603, allocations: 23.72 kB / 356.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.388e-05/0.1604, allocations: 37.64 kB / 356.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1606, allocations: 334.8 kB / 357.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.1607, allocations: 27.98 kB / 357.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.1609, allocations: 82 kB / 357.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002728/0.1612, allocations: 100.7 kB / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.1612, allocations: 0 / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004261/0.1616, allocations: 141.3 kB / 357.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.1617, allocations: 8 kB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.1617, allocations: 0 / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.1617, allocations: 7.984 kB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.1619, allocations: 19.92 kB / 357.5 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.1619, allocations: 7.938 kB / 357.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.1621, allocations: 11.98 kB / 357.5 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.1621, allocations: 7.984 kB / 357.5 MB, free: 12.97 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.0001963/0.1623, allocations: 153.8 kB / 357.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.67e-05/0.1624, allocations: 19.72 kB / 357.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.769e-05/0.1625, allocations: 25.7 kB / 357.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1625, allocations: 3.938 kB / 357.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.1625, allocations: 7.938 kB / 357.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1625, allocations: 0 / 357.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.1629, allocations: 241.5 kB / 357.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1629, allocations: 4 kB / 357.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.759e-05/0.1629, allocations: 4 kB / 357.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1629, allocations: 4 kB / 357.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.163, allocations: 4 kB / 358 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.163, allocations: 0 / 358 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.163, allocations: 8.047 kB / 358 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004279/0.1634, allocations: 182.4 kB / 358.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.203e-05/0.1635, allocations: 100.9 kB / 358.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.499e-05/0.1636, allocations: 0 / 358.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.1637, allocations: 15.98 kB / 358.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.088e-05/0.1638, allocations: 19.91 kB / 358.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/0.1638, allocations: 4 kB / 358.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002919/0.1641, allocations: 212.5 kB / 358.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1642, allocations: 0 / 358.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004284/0.1646, allocations: 32 kB / 358.5 MB, free: 11.84 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.001349/0.166, allocations: 433.7 kB / 358.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003867/0.1664, allocations: 91.84 kB / 359 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1664, allocations: 0 / 359 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.1666, allocations: 55.91 kB / 359.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005435/0.1671, allocations: 48.59 kB / 359.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009048/0.1681, allocations: 412.4 kB / 359.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.1684, allocations: 0.7322 MB / 360.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.991e-05/0.1685, allocations: 23.38 kB / 360.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1686, allocations: 4 kB / 360.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of Templates: time 0.008311/0.1769, allocations: 2.859 MB / 363.2 MB, free: 7.309 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/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