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.001458/0.001458, allocations: 104 kB / 17.59 MB, free: 5.559 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.001699/0.001699, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.372/1.372, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 46.19 kB / 301.3 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09295/0.09397, allocations: 49.44 MB / 350.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003782/0.0978, allocations: 1.825 MB / 352.5 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.09965, allocations: 1.021 MB / 353.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.09982, allocations: 4 kB / 353.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007284/0.1006, allocations: 176.3 kB / 353.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003687/0.1009, allocations: 119.5 kB / 353.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005487/0.1015, allocations: 180.2 kB / 354 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003181/0.1018, allocations: 207.4 kB / 354.2 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.102, allocations: 29.55 kB / 354.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.1021, allocations: 83.69 kB / 354.3 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001529/0.1023, allocations: 83.61 kB / 354.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.965e-05/0.1023, allocations: 12 kB / 354.4 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.1025, allocations: 43.98 kB / 354.5 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.793e-05/0.1026, allocations: 55.81 kB / 354.5 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.574e-05/0.1027, allocations: 79.42 kB / 354.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000333/0.103, allocations: 211.6 kB / 354.8 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.103, allocations: 0 / 354.8 MB, free: 324 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1031, allocations: 0 / 354.8 MB, free: 324 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.1031, allocations: 4 kB / 354.8 MB, free: 320 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.001018/0.1041, allocations: 0.5312 MB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.1041, allocations: 11.89 kB / 355.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.812e-05/0.1042, allocations: 20.75 kB / 355.4 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003342/0.1046, allocations: 254.8 kB / 355.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.1046, allocations: 11.94 kB / 355.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.1046, allocations: 7.984 kB / 355.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.1049, allocations: 114 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1049, allocations: 0 / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.1049, allocations: 4 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.1049, allocations: 4 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.1051, allocations: 51.89 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000706/0.1058, allocations: 0.6104 MB / 356.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002577/0.1061, allocations: 123.9 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.1062, allocations: 50.56 kB / 356.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.1062, allocations: 7.969 kB / 356.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.1065, allocations: 125.8 kB / 356.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.1065, allocations: 0 / 356.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004733/0.107, allocations: 169.4 kB / 356.9 MB, free: 14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.002e-05/0.1071, allocations: 140.4 kB / 357 MB, free: 13.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.1074, allocations: 288.9 kB / 357.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.1074, allocations: 33.83 kB / 357.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.507e-05/0.1075, allocations: 128.4 kB / 357.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.249e-05/0.1075, allocations: 19.72 kB / 357.5 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-05/0.1076, allocations: 37.64 kB / 357.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1077, allocations: 334.8 kB / 357.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.264e-05/0.1078, allocations: 31.98 kB / 357.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.1079, allocations: 81.98 kB / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.1082, allocations: 92.22 kB / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1082, allocations: 0 / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002942/0.1085, allocations: 153.8 kB / 358.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.1085, allocations: 4 kB / 358.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.1085, allocations: 4 kB / 358.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.1085, allocations: 0 / 358.2 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.5e-05/0.1086, allocations: 15.94 kB / 358.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.1087, allocations: 7.938 kB / 358.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.1088, allocations: 15.98 kB / 358.3 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.1088, allocations: 4 kB / 358.3 MB, free: 12.52 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.0001318/0.1089, allocations: 145.9 kB / 358.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4e-05/0.109, allocations: 23.72 kB / 358.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.448e-05/0.1091, allocations: 25.7 kB / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1091, allocations: 0 / 358.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.1091, allocations: 3.938 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1091, allocations: 4 kB / 358.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002336/0.1093, allocations: 245.5 kB / 358.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.1093, allocations: 0 / 358.7 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.121e-05/0.1094, allocations: 11.94 kB / 358.7 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.1094, allocations: 4 kB / 358.7 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.1094, allocations: 7.984 kB / 358.7 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.1094, allocations: 3.938 kB / 358.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1094, allocations: 3.938 kB / 358.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003009/0.1097, allocations: 170.5 kB / 358.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.708e-05/0.1098, allocations: 92.92 kB / 359 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.1099, allocations: 11.98 kB / 359 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.11, allocations: 15.92 kB / 359 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.11, allocations: 15.92 kB / 359 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.1101, allocations: 4 kB / 359 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002025/0.1103, allocations: 216.5 kB / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1103, allocations: 0 / 359.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004509/0.1107, allocations: 32 kB / 359.3 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.001118/0.1119, allocations: 428.1 kB / 359.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003227/0.1122, allocations: 99.84 kB / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1122, allocations: 0 / 359.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.1124, allocations: 56.28 kB / 359.9 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.0003942/0.1128, allocations: 47.59 kB / 359.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006985/0.1135, allocations: 378.5 kB / 360.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.1138, allocations: 0.7358 MB / 361 MB, free: 9.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.977e-05/0.1139, allocations: 19.44 kB / 361 MB, free: 9.746 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1139, allocations: 8 kB / 361 MB, free: 9.738 MB / 302.1 MB Notification: Performance of Templates: time 0.005399/0.1193, allocations: 2.867 MB / 363.9 MB, free: 6.887 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