Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0013/0.0013, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.428/1.428, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 64.73 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.1011, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003766/0.1049, allocations: 1.852 MB / 360.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002161/0.1071, allocations: 1.173 MB / 361.4 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.1073, allocations: 4 kB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006726/0.108, allocations: 163.5 kB / 361.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000443/0.1084, allocations: 170.6 kB / 361.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004364/0.1089, allocations: 139.6 kB / 361.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002961/0.1092, allocations: 223.3 kB / 362.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.1093, allocations: 21.55 kB / 362.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.1094, allocations: 83.69 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.1096, allocations: 95.55 kB / 362.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.855e-05/0.1097, allocations: 8 kB / 362.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.1098, allocations: 59.97 kB / 362.4 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.486e-05/0.1099, allocations: 47.84 kB / 362.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.11, allocations: 87.45 kB / 362.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003215/0.1103, allocations: 211.6 kB / 362.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1104, allocations: 0 / 362.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1104, allocations: 0 / 362.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.1104, allocations: 0 / 362.7 MB, free: 9.621 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.0009832/0.1114, allocations: 0.5352 MB / 363.3 MB, free: 9.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.1114, allocations: 12.03 kB / 363.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.942e-05/0.1115, allocations: 24.66 kB / 363.3 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.1118, allocations: 258.8 kB / 363.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.1119, allocations: 4.375 kB / 363.6 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.19e-05/0.1119, allocations: 12.12 kB / 363.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.1122, allocations: 117.9 kB / 363.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1122, allocations: 8 kB / 363.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.1122, allocations: 4 kB / 363.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1122, allocations: 0 / 363.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001529/0.1124, allocations: 51.91 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000744/0.1131, allocations: 0.6065 MB / 364.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002927/0.1134, allocations: 127.9 kB / 364.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.1136, allocations: 54.56 kB / 364.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.1136, allocations: 0 / 364.5 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000249/0.1138, allocations: 121.9 kB / 364.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.253e-06/0.1139, allocations: 0 / 364.7 MB, free: 7.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004947/0.1144, allocations: 173.4 kB / 364.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.1145, allocations: 132.5 kB / 365 MB, free: 7.125 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003625/0.1148, allocations: 304.8 kB / 365.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.1149, allocations: 29.7 kB / 365.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.115, allocations: 128.4 kB / 365.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.616e-05/0.115, allocations: 23.66 kB / 365.4 MB, free: 6.633 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.445e-05/0.1151, allocations: 37.7 kB / 365.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.1153, allocations: 338.9 kB / 365.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.407e-05/0.1154, allocations: 31.98 kB / 365.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001371/0.1155, allocations: 81.98 kB / 365.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.1157, allocations: 96.25 kB / 366 MB, free: 6.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1158, allocations: 0 / 366 MB, free: 6.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003007/0.1161, allocations: 141.8 kB / 366.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.1161, allocations: 8 kB / 366.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1161, allocations: 0 / 366.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.1161, allocations: 0 / 366.1 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.54e-05/0.1162, allocations: 24.09 kB / 366.2 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.1163, allocations: 15.92 kB / 366.2 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001141/0.1164, allocations: 15.84 kB / 366.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.1164, allocations: 4 kB / 366.2 MB, free: 5.797 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.0001685/0.1166, allocations: 147.3 kB / 366.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.78e-05/0.1166, allocations: 23.8 kB / 366.4 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.858e-05/0.1167, allocations: 21.72 kB / 366.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.1167, allocations: 4 kB / 366.4 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1167, allocations: 4 kB / 366.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.1167, allocations: 7.922 kB / 366.4 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002808/0.117, allocations: 245.5 kB / 366.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.117, allocations: 0 / 366.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.21e-05/0.1171, allocations: 11.94 kB / 366.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.1171, allocations: 4 kB / 366.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.117e-05/0.1171, allocations: 0 / 366.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1171, allocations: 0 / 366.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1171, allocations: 4 kB / 366.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003372/0.1174, allocations: 178.5 kB / 366.8 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.711e-05/0.1175, allocations: 100.8 kB / 366.9 MB, free: 4.961 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.753e-05/0.1176, allocations: 8 kB / 366.9 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.1177, allocations: 11.98 kB / 367 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.389e-05/0.1178, allocations: 19.91 kB / 367 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.1178, allocations: 8 kB / 367 MB, free: 4.914 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002514/0.118, allocations: 220.4 kB / 367.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.118, allocations: 0 / 367.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002761/0.1183, allocations: 40 kB / 367.2 MB, free: 4.656 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.001535/0.1199, allocations: 413.5 kB / 367.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003088/0.1202, allocations: 99.83 kB / 367.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.1202, allocations: 4.188 kB / 367.7 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.1204, allocations: 59.84 kB / 367.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.1208, allocations: 54.7 kB / 367.9 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007304/0.1215, allocations: 391.2 kB / 368.2 MB, free: 3.777 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.1219, allocations: 0.7358 MB / 369 MB, free: 3.016 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.882e-05/0.122, allocations: 19.44 kB / 369 MB, free: 2.996 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.122, allocations: 0 / 369 MB, free: 2.996 MB / 302.1 MB Notification: Performance of Templates: time 0.005903/0.1279, allocations: 2.948 MB / 371.9 MB, free: 60 kB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches