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.001185/0.001185, allocations: 114.9 kB / 17.69 MB, free: 5.312 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.001289/0.001289, allocations: 191 kB / 18.63 MB, free: 4.379 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.343/1.343, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009753/0.0009753, allocations: 51.47 kB / 302.1 MB, free: 5.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09529/0.09628, allocations: 49.44 MB / 351.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003001/0.0993, allocations: 1.832 MB / 353.3 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.1011, allocations: 1.033 MB / 354.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.746e-05/0.1012, allocations: 0 / 354.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005123/0.1017, allocations: 171.4 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.102, allocations: 123.5 kB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003716/0.1024, allocations: 178.5 kB / 354.8 MB, free: 396 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002051/0.1026, allocations: 207.4 kB / 355 MB, free: 188 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.166e-05/0.1026, allocations: 17.56 kB / 355 MB, free: 172 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.1027, allocations: 83.67 kB / 355.1 MB, free: 88 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000162/0.1029, allocations: 91.61 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.075e-05/0.1029, allocations: 8 kB / 355.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.1031, allocations: 55.92 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.198e-05/0.1031, allocations: 51.88 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.1033, allocations: 75.48 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002385/0.1035, allocations: 215.3 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1035, allocations: 4 kB / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1035, allocations: 0 / 355.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1035, allocations: 0 / 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.0007345/0.1043, allocations: 0.5234 MB / 356.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.1043, allocations: 15.89 kB / 356.1 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.043e-05/0.1044, allocations: 20.75 kB / 356.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.1047, allocations: 262.8 kB / 356.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.1047, allocations: 7.938 kB / 356.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.1047, allocations: 8 kB / 356.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002163/0.1049, allocations: 113.9 kB / 356.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.105, allocations: 7.938 kB / 356.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.105, allocations: 0 / 356.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.105, allocations: 0 / 356.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.1051, allocations: 51.91 kB / 356.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005946/0.1057, allocations: 0.6026 MB / 357.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.106, allocations: 127.9 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.719e-05/0.1061, allocations: 46.56 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.1061, allocations: 11.94 kB / 357.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002013/0.1063, allocations: 114 kB / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.1064, allocations: 4 kB / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004214/0.1068, allocations: 181.9 kB / 357.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.468e-05/0.1069, allocations: 136.4 kB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003036/0.1072, allocations: 288.9 kB / 358.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.1072, allocations: 29.7 kB / 358.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.042e-05/0.1073, allocations: 120.4 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/0.1073, allocations: 27.7 kB / 358.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.1074, allocations: 33.59 kB / 358.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.1075, allocations: 338.8 kB / 358.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.779e-05/0.1076, allocations: 31.98 kB / 358.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.1078, allocations: 77.98 kB / 358.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.1079, allocations: 96.25 kB / 358.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1079, allocations: 3.938 kB / 358.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002609/0.1082, allocations: 149.2 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1082, allocations: 4 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1082, allocations: 0 / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.1083, allocations: 4 kB / 359 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.68e-05/0.1083, allocations: 20.02 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.1084, allocations: 7.938 kB / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.1085, allocations: 15.98 kB / 359 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.1085, allocations: 4 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.0001242/0.1086, allocations: 145.8 kB / 359.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.452e-05/0.1087, allocations: 19.72 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.427e-05/0.1087, allocations: 21.91 kB / 359.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1087, allocations: 11.92 kB / 359.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1087, allocations: 11.94 kB / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1088, allocations: 0 / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.109, allocations: 245.5 kB / 359.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.109, allocations: 0 / 359.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.817e-05/0.109, allocations: 7.984 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.109, allocations: 0 / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.109, allocations: 4 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1091, allocations: 0 / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.1091, allocations: 7.938 kB / 359.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003017/0.1094, allocations: 186.3 kB / 359.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.104e-05/0.1094, allocations: 92.91 kB / 359.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.1095, allocations: 8 kB / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.261e-05/0.1096, allocations: 7.984 kB / 359.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.1096, allocations: 19.92 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.1097, allocations: 4 kB / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002021/0.1099, allocations: 216.5 kB / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1099, allocations: 0 / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002575/0.1101, allocations: 39.98 kB / 360.1 MB, free: 10.67 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.0008881/0.111, allocations: 412.8 kB / 360.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002474/0.1113, allocations: 91.83 kB / 360.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1113, allocations: 192 / 360.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.1114, allocations: 59.92 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.0003176/0.1118, allocations: 54.73 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.0005284/0.1123, allocations: 352.8 kB / 361 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.1126, allocations: 0.7359 MB / 361.8 MB, free: 9.082 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.281e-05/0.1127, allocations: 17.55 kB / 361.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.499e-05/0.1127, allocations: 19.44 kB / 361.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1127, allocations: 3.938 kB / 361.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of Templates: time 0.005745/0.1185, allocations: 2.732 MB / 364.5 MB, free: 6.336 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 gbode -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