Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 75.75 kB / 21.69 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 162.1 kB / 24.99 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.056/1.056, allocations: 177.1 MB / 205.3 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 273.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.604e-05/2.782e-05, allocations: 2.312 kB / 273.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.005953/0.005981, allocations: 1.875 MB / 274.9 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004586/0.01057, allocations: 1.157 MB / 276.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.389e-05/0.01066, allocations: 0 / 276.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005903/0.01125, allocations: 167.5 kB / 276.2 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003283/0.01158, allocations: 183.1 kB / 276.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002763/0.01186, allocations: 147.5 kB / 276.6 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.0121, allocations: 223.2 kB / 276.8 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.725e-05/0.0122, allocations: 9.812 kB / 276.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001434/0.01234, allocations: 115.7 kB / 276.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.01245, allocations: 83.78 kB / 277 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.01247, allocations: 12 kB / 277 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.01258, allocations: 59.89 kB / 277.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.135e-05/0.01264, allocations: 51.78 kB / 277.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.683e-05/0.01269, allocations: 43.84 kB / 277.2 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002182/0.01291, allocations: 171.4 kB / 277.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.01291, allocations: 3.938 kB / 277.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.01292, allocations: 3.984 kB / 277.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.01292, allocations: 4 kB / 277.3 MB, free: 13.54 MB / 266.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.0007252/0.01365, allocations: 0.5478 MB / 277.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.01369, allocations: 12.03 kB / 277.9 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.343e-05/0.01376, allocations: 32.78 kB / 277.9 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/0.01406, allocations: 208.4 kB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.01408, allocations: 12.36 kB / 278.1 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.0141, allocations: 4.375 kB / 278.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/0.01428, allocations: 104.9 kB / 278.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.01429, allocations: 3.938 kB / 278.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/0.0143, allocations: 4 kB / 278.3 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.01431, allocations: 4 kB / 278.3 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.189e-05/0.01439, allocations: 31.91 kB / 278.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005693/0.01495, allocations: 0.7268 MB / 279 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.01513, allocations: 121.3 kB / 279.1 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.819e-05/0.01519, allocations: 43.05 kB / 279.2 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.963e-05/0.01521, allocations: 4 kB / 279.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001642/0.01537, allocations: 120 kB / 279.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.01537, allocations: 0 / 279.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.000319/0.01569, allocations: 145.5 kB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.962e-05/0.01576, allocations: 106.8 kB / 279.5 MB, free: 11.08 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.01606, allocations: 300.3 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.01608, allocations: 29.7 kB / 279.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.915e-05/0.01618, allocations: 178.8 kB / 280 MB, free: 10.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.949e-05/0.01622, allocations: 31.75 kB / 280.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.01627, allocations: 35.36 kB / 280.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.01644, allocations: 0.5079 MB / 280.6 MB, free: 9.961 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.491e-05/0.01649, allocations: 16 kB / 280.6 MB, free: 9.945 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.441e-05/0.01658, allocations: 99.8 kB / 280.7 MB, free: 9.816 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.01669, allocations: 86.47 kB / 280.8 MB, free: 9.711 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.0167, allocations: 0 / 280.8 MB, free: 9.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001844/0.01688, allocations: 125.4 kB / 280.9 MB, free: 9.582 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.0169, allocations: 4 kB / 280.9 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.0169, allocations: 0.625 kB / 280.9 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.01692, allocations: 4 kB / 280.9 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.945e-05/0.017, allocations: 16.08 kB / 281 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.017, allocations: 11.92 kB / 281 MB, free: 9.547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.285e-05/0.01708, allocations: 15.98 kB / 281 MB, free: 9.531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.01709, allocations: 8 kB / 281 MB, free: 9.523 MB / 266.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.578e-05/0.01719, allocations: 172.5 kB / 281.2 MB, free: 9.344 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/0.01722, allocations: 27.86 kB / 281.2 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.01739, allocations: 103.4 kB / 281.3 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.0174, allocations: 3.984 kB / 281.3 MB, free: 9.203 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.0174, allocations: 4 kB / 281.3 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.01741, allocations: 4 kB / 281.3 MB, free: 9.195 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000143/0.01755, allocations: 188.5 kB / 281.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.01755, allocations: 0 / 281.5 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.166e-05/0.01757, allocations: 11.98 kB / 281.5 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.01758, allocations: 0 / 281.5 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.01759, allocations: 8 kB / 281.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.01759, allocations: 0 / 281.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01759, allocations: 0 / 281.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.01774, allocations: 183.5 kB / 281.7 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.903e-05/0.01776, allocations: 15.91 kB / 281.7 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.01778, allocations: 8 kB / 281.7 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.641e-05/0.01784, allocations: 11.98 kB / 281.7 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/0.01789, allocations: 11.98 kB / 281.7 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.0179, allocations: 11.98 kB / 281.7 MB, free: 8.688 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001132/0.01801, allocations: 213.1 kB / 282 MB, free: 8.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01801, allocations: 0 / 282 MB, free: 8.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001758/0.01819, allocations: 43.89 kB / 282 MB, free: 8.438 MB / 266.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.0008132/0.019, allocations: 392.3 kB / 282.4 MB, free: 8.191 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001412/0.01914, allocations: 75.7 kB / 282.5 MB, free: 8.113 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01915, allocations: 0 / 282.5 MB, free: 8.113 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.311e-05/0.0192, allocations: 39.73 kB / 282.5 MB, free: 8.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.01943, allocations: 76.44 kB / 282.6 MB, free: 8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004259/0.01985, allocations: 326.2 kB / 282.9 MB, free: 7.645 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.395e-05/0.0199, allocations: 75.98 kB / 283 MB, free: 7.551 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.343e-05/0.01995, allocations: 25.61 kB / 283 MB, free: 7.527 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.002e-05/0.01999, allocations: 24.5 kB / 283 MB, free: 7.5 MB / 266.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01999, allocations: 3.938 kB / 283 MB, free: 7.496 MB / 266.7 MB Notification: Performance of Templates: time 0.004476/0.02447, allocations: 2.912 MB / 285.9 MB, free: 4.625 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.177012372063473]