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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002278/0.002278, allocations: 116.9 kB / 18.41 MB, free: 4.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002294/0.002294, allocations: 186.9 kB / 21.34 MB, free: 1.723 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.538/1.538, allocations: 222.9 MB / 247.1 MB, free: 4.215 MB / 190.1 MB " [Timeout remaining time 178] 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=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 51.91 kB / 358.7 MB, free: 8.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09007/0.09162, allocations: 49.44 MB / 408.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003151/0.09481, allocations: 1.826 MB / 409.9 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.09651, allocations: 1.033 MB / 410.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.927e-05/0.0966, allocations: 4 kB / 411 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005822/0.09719, allocations: 175.5 kB / 411.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002958/0.0975, allocations: 123.5 kB / 411.2 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000421/0.09793, allocations: 174.9 kB / 411.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.09822, allocations: 211.4 kB / 411.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.09833, allocations: 17.56 kB / 411.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.09847, allocations: 87.61 kB / 411.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.0986, allocations: 75.69 kB / 411.8 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.14e-05/0.09864, allocations: 12 kB / 411.8 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.0988, allocations: 63.89 kB / 411.9 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.162e-05/0.09889, allocations: 43.84 kB / 411.9 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.749e-05/0.09899, allocations: 79.53 kB / 412 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.09934, allocations: 223 kB / 412.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.09935, allocations: 4 kB / 412.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.09936, allocations: 0 / 412.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.09937, allocations: 0 / 412.2 MB, free: 2.824 MB / 334.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.0009077/0.1003, allocations: 0.5233 MB / 412.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.1003, allocations: 11.97 kB / 412.8 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.29e-05/0.1004, allocations: 24.8 kB / 412.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.1007, allocations: 262.7 kB / 413 MB, free: 1.914 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.1008, allocations: 12 kB / 413 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.1008, allocations: 4 kB / 413 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.101, allocations: 113.9 kB / 413.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.101, allocations: 0 / 413.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1011, allocations: 0 / 413.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1011, allocations: 4 kB / 413.2 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001581/0.1012, allocations: 51.91 kB / 413.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007055/0.102, allocations: 0.6104 MB / 413.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002793/0.1022, allocations: 123.9 kB / 413.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.1024, allocations: 54.55 kB / 414 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.1024, allocations: 0 / 414 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.1027, allocations: 125.8 kB / 414.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.1027, allocations: 0 / 414.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004871/0.1032, allocations: 177.4 kB / 414.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.856e-05/0.1033, allocations: 140.4 kB / 414.4 MB, free: 344 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003266/0.1036, allocations: 289.1 kB / 414.7 MB, free: 40 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.1037, allocations: 33.7 kB / 414.7 MB, free: 0 / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.1038, allocations: 120.4 kB / 414.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.994e-05/0.1038, allocations: 31.84 kB / 414.9 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.414e-05/0.1039, allocations: 37.7 kB / 414.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1041, allocations: 326.8 kB / 415.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.824e-05/0.1042, allocations: 31.92 kB / 415.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001432/0.1043, allocations: 89.92 kB / 415.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.1045, allocations: 100.7 kB / 415.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1045, allocations: 32 / 415.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003007/0.1048, allocations: 145.4 kB / 415.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.1049, allocations: 4 kB / 415.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.1049, allocations: 4 kB / 415.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1049, allocations: 0 / 415.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-05/0.105, allocations: 23.86 kB / 415.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.105, allocations: 4 kB / 415.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.1051, allocations: 19.94 kB / 415.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.1051, allocations: 8.094 kB / 415.7 MB, free: 15.01 MB / 350.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.0001465/0.1053, allocations: 149.6 kB / 415.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.1053, allocations: 23.86 kB / 415.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.767e-05/0.1054, allocations: 25.7 kB / 415.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1054, allocations: 3.938 kB / 415.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1054, allocations: 0 / 415.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1054, allocations: 4 kB / 415.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.1057, allocations: 233.6 kB / 416.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1057, allocations: 0 / 416.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.188e-05/0.1057, allocations: 16.06 kB / 416.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.1058, allocations: 4 kB / 416.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.1058, allocations: 4 kB / 416.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1058, allocations: 3.938 kB / 416.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1058, allocations: 0 / 416.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003399/0.1061, allocations: 178.6 kB / 416.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.797e-05/0.1062, allocations: 104.9 kB / 416.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.1063, allocations: 0 / 416.4 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.1064, allocations: 15.92 kB / 416.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.054e-05/0.1064, allocations: 11.98 kB / 416.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.1065, allocations: 4 kB / 416.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002315/0.1067, allocations: 216.5 kB / 416.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1067, allocations: 0 / 416.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002676/0.107, allocations: 39.92 kB / 416.7 MB, free: 13.89 MB / 350.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.001503/0.1085, allocations: 424.5 kB / 417.1 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002994/0.1088, allocations: 99.83 kB / 417.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1088, allocations: 0 / 417.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.109, allocations: 47.98 kB / 417.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.1093, allocations: 54.86 kB / 417.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006385/0.11, allocations: 382 kB / 417.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.1104, allocations: 0.7356 MB / 418.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.849e-05/0.1105, allocations: 23.44 kB / 418.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1105, allocations: 0 / 418.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of Templates: time 0.005628/0.1161, allocations: 2.893 MB / 421.3 MB, free: 9.367 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.5444313189946115]