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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008152/0.0008152, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008165/0.0008165, allocations: 160.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9026/0.9026, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.521e-05/1.693e-05, allocations: 3.125 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002223/0.00224, allocations: 1.823 MB / 326.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.003742, allocations: 1.121 MB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.003847, allocations: 4 kB / 327.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005533/0.004401, allocations: 171.3 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003435/0.004744, allocations: 167.2 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003359/0.00508, allocations: 154.5 kB / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000237/0.005317, allocations: 223.2 kB / 328.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.005425, allocations: 13.81 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.005563, allocations: 119.6 kB / 328.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.005671, allocations: 79.78 kB / 328.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.005692, allocations: 12 kB / 328.4 MB, free: 12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.005811, allocations: 59.89 kB / 328.4 MB, free: 11.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.315e-05/0.005874, allocations: 51.83 kB / 328.5 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.274e-05/0.005927, allocations: 47.86 kB / 328.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002686/0.006196, allocations: 235.1 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.006198, allocations: 0 / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.006199, allocations: 0 / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.006203, allocations: 0 / 328.8 MB, free: 11.61 MB / 298.7 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.0006422/0.006845, allocations: 462.7 kB / 329.2 MB, free: 11.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.006883, allocations: 15.98 kB / 329.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.914e-05/0.006912, allocations: 38.73 kB / 329.3 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.328e-05/0.006955, allocations: 24.8 kB / 329.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.00719, allocations: 212.7 kB / 329.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.007204, allocations: 4.375 kB / 329.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.356e-05/0.007218, allocations: 8.375 kB / 329.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.007389, allocations: 105.6 kB / 329.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.007397, allocations: 192 / 329.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.007409, allocations: 8.125 kB / 329.6 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.007415, allocations: 4 kB / 329.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.909e-05/0.007504, allocations: 47.91 kB / 329.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004753/0.00798, allocations: 0.555 MB / 330.2 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.008146, allocations: 135.8 kB / 330.4 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.725e-05/0.008204, allocations: 50.5 kB / 330.4 MB, free: 9.789 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.008228, allocations: 4 kB / 330.4 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003666/0.008595, allocations: 125.9 kB / 330.5 MB, free: 9.641 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 2.545e-06/0.008597, allocations: 0 / 330.5 MB, free: 9.641 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005205/0.009118, allocations: 177.5 kB / 330.7 MB, free: 9.461 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.461e-05/0.009192, allocations: 110.9 kB / 330.8 MB, free: 9.328 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000323/0.009515, allocations: 301.9 kB / 331.1 MB, free: 9.023 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.009531, allocations: 29.7 kB / 331.1 MB, free: 8.988 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.446e-05/0.009595, allocations: 128.3 kB / 331.3 MB, free: 8.859 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.00962, allocations: 31.73 kB / 331.3 MB, free: 8.828 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/0.009661, allocations: 33.7 kB / 331.3 MB, free: 8.789 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.226e-05/0.009744, allocations: 326.8 kB / 331.7 MB, free: 8.461 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.157e-05/0.009795, allocations: 35.98 kB / 331.7 MB, free: 8.426 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.876e-05/0.009874, allocations: 104.6 kB / 331.8 MB, free: 8.301 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001071/0.009981, allocations: 108.2 kB / 331.9 MB, free: 8.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.009983, allocations: 3.938 kB / 331.9 MB, free: 8.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001562/0.01014, allocations: 141.4 kB / 332 MB, free: 8.031 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.01016, allocations: 11.98 kB / 332 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.01016, allocations: 0.625 kB / 332 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.01017, allocations: 4 kB / 332.1 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.509e-05/0.01023, allocations: 20.09 kB / 332.1 MB, free: 7.996 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.01024, allocations: 3.938 kB / 332.1 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.753e-05/0.01029, allocations: 11.98 kB / 332.1 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.0103, allocations: 8 kB / 332.1 MB, free: 7.973 MB / 298.7 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 9.218e-05/0.01039, allocations: 150.4 kB / 332.2 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.093e-05/0.01042, allocations: 19.86 kB / 332.3 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.01056, allocations: 127.3 kB / 332.4 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.01057, allocations: 3.984 kB / 332.4 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.01057, allocations: 8 kB / 332.4 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.01058, allocations: 0 / 332.4 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/0.01072, allocations: 208.5 kB / 332.6 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.01073, allocations: 0 / 332.6 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.726e-05/0.01074, allocations: 8 kB / 332.6 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.01075, allocations: 0 / 332.6 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.01076, allocations: 4 kB / 332.6 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.01076, allocations: 0 / 332.6 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.01076, allocations: 0 / 332.6 MB, free: 7.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000175/0.01093, allocations: 198.5 kB / 332.8 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.289e-05/0.01096, allocations: 19.86 kB / 332.8 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.01098, allocations: 8 kB / 332.8 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.499e-05/0.01102, allocations: 11.98 kB / 332.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.01107, allocations: 15.97 kB / 332.9 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.01109, allocations: 7.938 kB / 332.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000139/0.01123, allocations: 221.2 kB / 333.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01123, allocations: 0 / 333.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00018/0.01141, allocations: 43.92 kB / 333.1 MB, free: 6.863 MB / 298.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.001007/0.01242, allocations: 1.054 MB / 334.2 MB, free: 5.926 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001692/0.01259, allocations: 87.91 kB / 334.3 MB, free: 5.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01259, allocations: 0 / 334.3 MB, free: 5.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.179e-05/0.01266, allocations: 51.91 kB / 334.3 MB, free: 5.789 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.01288, allocations: 48.12 kB / 334.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.01459, allocations: 2.22 MB / 336.6 MB, free: 3.395 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.188e-05/0.01468, allocations: 123.6 kB / 336.7 MB, free: 3.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.054e-05/0.01474, allocations: 29.62 kB / 336.7 MB, free: 3.223 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.446e-05/0.01481, allocations: 60.47 kB / 336.8 MB, free: 3.164 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01481, allocations: 0 / 336.8 MB, free: 3.164 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01802/0.03283, allocations: 6.091 MB / 342.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.865/6.897, allocations: 4.062 kB / 342.9 MB, free: 13.1 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.634443995542824]