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.001557/0.001557, allocations: 106.4 kB / 16.51 MB, free: 6.719 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.001657/0.001657, allocations: 194.5 kB / 17.43 MB, free: 6.059 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.342/1.342, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 46.3 kB / 299.9 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09617/0.09724, allocations: 49.45 MB / 349.4 MB, free: 4.859 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003315/0.1006, allocations: 1.875 MB / 351.3 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001746/0.1024, allocations: 1.009 MB / 352.3 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.776e-05/0.1025, allocations: 3.938 kB / 352.3 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000691/0.1032, allocations: 155.6 kB / 352.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002754/0.1035, allocations: 111.6 kB / 352.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004443/0.1039, allocations: 158.2 kB / 352.7 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002671/0.1042, allocations: 207.4 kB / 352.9 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.1043, allocations: 25.55 kB / 352.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.1044, allocations: 75.62 kB / 353 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001182/0.1046, allocations: 79.67 kB / 353.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.1046, allocations: 8 kB / 353.1 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.1047, allocations: 43.97 kB / 353.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.124e-05/0.1048, allocations: 39.78 kB / 353.2 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.374e-05/0.1049, allocations: 71.53 kB / 353.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002802/0.1052, allocations: 207.6 kB / 353.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1052, allocations: 4 kB / 353.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1052, allocations: 0 / 353.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.1052, allocations: 0 / 353.4 MB, free: 0.7852 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.001016/0.1063, allocations: 0.5274 MB / 354 MB, free: 208 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.1063, allocations: 8.031 kB / 354 MB, free: 200 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.34e-05/0.1064, allocations: 20.69 kB / 354 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.1067, allocations: 262.9 kB / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.1067, allocations: 7.938 kB / 354.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.985e-05/0.1068, allocations: 8 kB / 354.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.1071, allocations: 121.2 kB / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1071, allocations: 0 / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.1071, allocations: 4 kB / 354.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1071, allocations: 4 kB / 354.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.1073, allocations: 51.89 kB / 354.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000678/0.108, allocations: 0.6026 MB / 355 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002905/0.1083, allocations: 135.8 kB / 355.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.1084, allocations: 46.56 kB / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.125e-05/0.1084, allocations: 0 / 355.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002442/0.1087, allocations: 125.9 kB / 355.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.1087, allocations: 0 / 355.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004813/0.1092, allocations: 169.4 kB / 355.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.098e-05/0.1093, allocations: 140.5 kB / 355.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/0.1096, allocations: 284.9 kB / 355.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.1096, allocations: 25.7 kB / 356 MB, free: 13.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.085e-05/0.1097, allocations: 132.5 kB / 356.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.949e-05/0.1097, allocations: 27.77 kB / 356.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.1098, allocations: 41.58 kB / 356.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1099, allocations: 326.8 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.552e-05/0.11, allocations: 31.98 kB / 356.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.1102, allocations: 89.92 kB / 356.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001729/0.1104, allocations: 92.72 kB / 356.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1104, allocations: 0 / 356.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002883/0.1107, allocations: 149.4 kB / 356.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.1107, allocations: 4 kB / 356.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.1107, allocations: 7.984 kB / 356.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.1107, allocations: 0 / 356.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.1108, allocations: 19.92 kB / 356.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.1108, allocations: 7.938 kB / 356.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.111, allocations: 11.98 kB / 356.9 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.111, allocations: 8 kB / 356.9 MB, free: 13 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.0001552/0.1111, allocations: 149.7 kB / 357 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.832e-05/0.1112, allocations: 23.72 kB / 357.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.928e-05/0.1112, allocations: 25.7 kB / 357.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1113, allocations: 7.922 kB / 357.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1113, allocations: 3.938 kB / 357.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1113, allocations: 4 kB / 357.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.1115, allocations: 241.5 kB / 357.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1115, allocations: 0 / 357.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.868e-05/0.1115, allocations: 4 kB / 357.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1116, allocations: 4 kB / 357.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1116, allocations: 8 kB / 357.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1116, allocations: 4 kB / 357.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1116, allocations: 3.938 kB / 357.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003115/0.1119, allocations: 174.5 kB / 357.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.657e-05/0.112, allocations: 92.91 kB / 357.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.112, allocations: 8.125 kB / 357.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.1122, allocations: 19.98 kB / 357.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.81e-05/0.1123, allocations: 11.92 kB / 357.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.1123, allocations: 8 kB / 357.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002311/0.1125, allocations: 220.4 kB / 357.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1125, allocations: 0 / 357.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002982/0.1128, allocations: 36 kB / 357.9 MB, free: 11.86 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.0009652/0.1138, allocations: 420.8 kB / 358.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002838/0.1141, allocations: 92.02 kB / 358.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1141, allocations: 0 / 358.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001381/0.1143, allocations: 56.05 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.1146, allocations: 48.39 kB / 358.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006126/0.1153, allocations: 382.9 kB / 358.9 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.1156, allocations: 0.7283 MB / 359.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.1157, allocations: 21.55 kB / 359.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.824e-05/0.1158, allocations: 27.36 kB / 359.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1158, allocations: 0 / 359.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Templates: time 0.006169/0.122, allocations: 2.552 MB / 362.2 MB, free: 7.668 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