Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, allocations: 118.9 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00163/0.00163, allocations: 204.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.414/1.414, allocations: 227.4 MB / 247.5 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.86 kB / 308.4 MB, free: 15.95 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1165, allocations: 50.53 MB / 358.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003166/0.1197, allocations: 1.853 MB / 360.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1215, allocations: 1.185 MB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.842e-05/0.1216, allocations: 3.938 kB / 361.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000571/0.1222, allocations: 167.5 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003575/0.1226, allocations: 159.3 kB / 362.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003292/0.1229, allocations: 146.8 kB / 362.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.1232, allocations: 219.4 kB / 362.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.1233, allocations: 29.5 kB / 362.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1234, allocations: 83.64 kB / 362.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.1235, allocations: 95.59 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.311e-05/0.1236, allocations: 8 kB / 362.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001241/0.1237, allocations: 55.97 kB / 362.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.044e-05/0.1238, allocations: 47.83 kB / 362.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.501e-05/0.1239, allocations: 83.48 kB / 363 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002809/0.1241, allocations: 223.3 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1242, allocations: 0 / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1242, allocations: 0 / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1242, allocations: 4 kB / 363.2 MB, free: 9.039 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.0008353/0.125, allocations: 0.5234 MB / 363.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.1251, allocations: 16.02 kB / 363.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.664e-05/0.1251, allocations: 20.66 kB / 363.8 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003095/0.1254, allocations: 262.8 kB / 364 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.1255, allocations: 12.36 kB / 364.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.044e-05/0.1255, allocations: 12.12 kB / 364.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002203/0.1257, allocations: 109.9 kB / 364.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.1257, allocations: 0 / 364.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.1258, allocations: 0 / 364.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1258, allocations: 4 kB / 364.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.1259, allocations: 55.91 kB / 364.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006214/0.1265, allocations: 0.6104 MB / 364.8 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.1268, allocations: 131.9 kB / 365 MB, free: 7.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.511e-05/0.1269, allocations: 46.5 kB / 365 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.127, allocations: 11.94 kB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.1272, allocations: 121.8 kB / 365.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.875e-06/0.1272, allocations: 0 / 365.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004196/0.1276, allocations: 173.3 kB / 365.3 MB, free: 6.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/0.1277, allocations: 136.5 kB / 365.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.128, allocations: 301 kB / 365.7 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.128, allocations: 25.7 kB / 365.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.087e-05/0.1281, allocations: 128.3 kB / 365.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.1282, allocations: 27.66 kB / 365.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.1282, allocations: 29.7 kB / 365.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1283, allocations: 342.8 kB / 366.3 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.632e-05/0.1284, allocations: 27.98 kB / 366.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.1286, allocations: 86 kB / 366.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001894/0.1288, allocations: 96.2 kB / 366.5 MB, free: 5.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1288, allocations: 4.031 kB / 366.5 MB, free: 5.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002546/0.129, allocations: 142 kB / 366.6 MB, free: 5.281 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.1291, allocations: 4 kB / 366.6 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1291, allocations: 4 kB / 366.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1291, allocations: 4 kB / 366.6 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.844e-05/0.1292, allocations: 19.92 kB / 366.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.1292, allocations: 0 / 366.7 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.1293, allocations: 23.92 kB / 366.7 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.1293, allocations: 8 kB / 366.7 MB, free: 5.219 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.0001313/0.1295, allocations: 157.6 kB / 366.8 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.1295, allocations: 19.8 kB / 366.9 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.32e-05/0.1296, allocations: 29.7 kB / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1296, allocations: 0 / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1296, allocations: 0 / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.1296, allocations: 7.938 kB / 366.9 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002115/0.1298, allocations: 237.5 kB / 367.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1298, allocations: 8 kB / 367.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.643e-05/0.1299, allocations: 4 kB / 367.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1299, allocations: 3.984 kB / 367.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1299, allocations: 8 kB / 367.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1299, allocations: 0 / 367.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1299, allocations: 0 / 367.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/0.1302, allocations: 182.4 kB / 367.3 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.215e-05/0.1303, allocations: 96.83 kB / 367.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.1303, allocations: 3.984 kB / 367.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.704e-05/0.1304, allocations: 15.98 kB / 367.4 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.395e-05/0.1305, allocations: 19.92 kB / 367.5 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.1305, allocations: 4 kB / 367.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001952/0.1307, allocations: 220.4 kB / 367.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1307, allocations: 0 / 367.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002623/0.131, allocations: 39.98 kB / 367.7 MB, free: 4.078 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.0009015/0.1319, allocations: 411.1 kB / 368.1 MB, free: 3.805 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002583/0.1322, allocations: 99.89 kB / 368.2 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1322, allocations: 0 / 368.2 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.1323, allocations: 47.92 kB / 368.3 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.1327, allocations: 57.38 kB / 368.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005485/0.1332, allocations: 341 kB / 368.7 MB, free: 3.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.1335, allocations: 0.7397 MB / 369.4 MB, free: 2.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.45e-05/0.1336, allocations: 29.52 kB / 369.4 MB, free: 2.445 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.131e-05/0.1337, allocations: 27.42 kB / 369.5 MB, free: 2.418 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1337, allocations: 0 / 369.5 MB, free: 2.418 MB / 302.1 MB Notification: Performance of Templates: time 0.1568/0.2905, allocations: 2.765 MB / 372.2 MB, free: 19.89 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches