Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.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.0009494/0.0009494, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.001349/0.001349, allocations: 171 kB / 25.7 MB, free: 8.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.876/0.876, allocations: 158.6 MB / 187.6 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 251.5 MB, free: 7.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.659e-05/1.809e-05, allocations: 6.25 kB / 251.5 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00193/0.001948, allocations: 1.624 MB / 253.1 MB, free: 5.641 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006252/0.002573, allocations: 471.6 kB / 253.6 MB, free: 5.172 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.494e-05/0.002618, allocations: 7.938 kB / 253.6 MB, free: 5.164 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.203e-05/0.00265, allocations: 7.922 kB / 253.6 MB, free: 5.156 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.342e-05/0.002723, allocations: 7.875 kB / 253.6 MB, free: 5.148 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001367/0.00286, allocations: 23.91 kB / 253.6 MB, free: 5.125 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.07e-05/0.002941, allocations: 67.72 kB / 253.7 MB, free: 5.059 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.003062, allocations: 31.95 kB / 253.7 MB, free: 5.027 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001148/0.003177, allocations: 39.91 kB / 253.8 MB, free: 4.988 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.393e-05/0.003231, allocations: 19.92 kB / 253.8 MB, free: 4.969 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.738e-05/0.003248, allocations: 4 kB / 253.8 MB, free: 4.965 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.536e-06/0.003257, allocations: 8 kB / 253.8 MB, free: 4.957 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 1.996e-05/0.003277, allocations: 15.97 kB / 253.8 MB, free: 4.941 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 1.987e-05/0.003296, allocations: 15.94 kB / 253.8 MB, free: 4.926 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 9.134e-05/0.003388, allocations: 55.69 kB / 253.9 MB, free: 4.871 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.00339, allocations: 0 / 253.9 MB, free: 4.871 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.00339, allocations: 0 / 253.9 MB, free: 4.871 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.096e-06/0.003393, allocations: 0 / 253.9 MB, free: 4.871 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0002808/0.003674, allocations: 280.7 kB / 254.2 MB, free: 4.574 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.003705, allocations: 8.031 kB / 254.2 MB, free: 4.566 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.589e-05/0.003731, allocations: 12.94 kB / 254.2 MB, free: 4.555 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.134e-05/0.003802, allocations: 125.6 kB / 254.3 MB, free: 4.406 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.003819, allocations: 8.375 kB / 254.3 MB, free: 4.398 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.00383, allocations: 8.375 kB / 254.3 MB, free: 4.391 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001149/0.003945, allocations: 103.2 kB / 254.4 MB, free: 4.266 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-06/0.003951, allocations: 192 / 254.4 MB, free: 4.266 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.003959, allocations: 8.375 kB / 254.4 MB, free: 4.258 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.952e-06/0.003965, allocations: 3.938 kB / 254.4 MB, free: 4.254 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.533e-05/0.004, allocations: 27.91 kB / 254.5 MB, free: 4.227 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003335/0.004333, allocations: 0.5125 MB / 255 MB, free: 3.684 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.936e-05/0.004413, allocations: 100.9 kB / 255.1 MB, free: 3.539 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.191e-05/0.004445, allocations: 32.42 kB / 255.1 MB, free: 3.492 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.004461, allocations: 7.938 kB / 255.1 MB, free: 3.484 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.004484, allocations: 42.55 kB / 255.2 MB, free: 3.434 MB / 234.7 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.004485, allocations: 0 / 255.2 MB, free: 3.434 MB / 234.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001454/0.00463, allocations: 61.56 kB / 255.2 MB, free: 3.367 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.004689, allocations: 166.2 kB / 255.4 MB, free: 3.168 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.422e-05/0.004753, allocations: 118.7 kB / 255.5 MB, free: 3.039 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 8.767e-06/0.004762, allocations: 25.7 kB / 255.5 MB, free: 3.008 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.593e-05/0.004798, allocations: 96.02 kB / 255.6 MB, free: 2.91 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.00482, allocations: 23.88 kB / 255.6 MB, free: 2.887 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.511e-05/0.004845, allocations: 13.72 kB / 255.7 MB, free: 2.867 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.244e-05/0.004928, allocations: 323.4 kB / 256 MB, free: 2.543 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.387e-05/0.004941, allocations: 8 kB / 256 MB, free: 2.535 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.859e-05/0.00497, allocations: 32.3 kB / 256 MB, free: 2.488 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.505e-05/0.005025, allocations: 52.2 kB / 256.1 MB, free: 2.422 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.005027, allocations: 0 / 256.1 MB, free: 2.422 MB / 234.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 7.05e-05/0.005097, allocations: 69.48 kB / 256.1 MB, free: 2.348 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.005109, allocations: 12.09 kB / 256.1 MB, free: 2.336 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.005114, allocations: 0 / 256.1 MB, free: 2.336 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.005126, allocations: 4 kB / 256.2 MB, free: 2.332 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.993e-05/0.005186, allocations: 11.98 kB / 256.2 MB, free: 2.32 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.005191, allocations: 3.938 kB / 256.2 MB, free: 2.316 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.628e-05/0.005217, allocations: 4 kB / 256.2 MB, free: 2.312 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.005224, allocations: 4 kB / 256.2 MB, free: 2.309 MB / 234.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: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 6.793e-05/0.005292, allocations: 113.8 kB / 256.3 MB, free: 2.188 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.51e-05/0.005337, allocations: 11.92 kB / 256.3 MB, free: 2.176 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.233e-05/0.005359, allocations: 11.62 kB / 256.3 MB, free: 2.164 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.005361, allocations: 4 kB / 256.3 MB, free: 2.16 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.005364, allocations: 0 / 256.3 MB, free: 2.16 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.00537, allocations: 4 kB / 256.3 MB, free: 2.156 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.005652, allocations: 85.77 kB / 256.4 MB, free: 2.055 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.005654, allocations: 0 / 256.4 MB, free: 2.055 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.582e-05/0.00569, allocations: 16.05 kB / 256.4 MB, free: 2.039 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.005693, allocations: 7.938 kB / 256.4 MB, free: 2.031 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-06/0.005699, allocations: 4 kB / 256.4 MB, free: 2.027 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.005701, allocations: 0 / 256.4 MB, free: 2.027 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.005703, allocations: 7.984 kB / 256.4 MB, free: 2.02 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001699/0.005873, allocations: 452.7 kB / 256.9 MB, free: 1.555 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.738e-06/0.005883, allocations: 11.92 kB / 256.9 MB, free: 1.543 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.278e-06/0.005892, allocations: 3.938 kB / 256.9 MB, free: 1.539 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.006005, allocations: 8 kB / 256.9 MB, free: 1.531 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.933e-05/0.006035, allocations: 7.984 kB / 256.9 MB, free: 1.523 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.006039, allocations: 4 kB / 256.9 MB, free: 1.52 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.567e-05/0.006055, allocations: 20.84 kB / 256.9 MB, free: 1.496 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006055, allocations: 0 / 256.9 MB, free: 1.496 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002062/0.006261, allocations: 11.95 kB / 256.9 MB, free: 1.484 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 6.274e-05/0.006324, allocations: 76.42 kB / 257 MB, free: 1.398 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 6.929e-05/0.006393, allocations: 36.72 kB / 257.1 MB, free: 1.359 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.006395, allocations: 0 / 257.1 MB, free: 1.359 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.061e-05/0.006416, allocations: 20.84 kB / 257.1 MB, free: 1.336 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.006693, allocations: 15.88 kB / 257.1 MB, free: 1.32 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004156/0.007109, allocations: 207.3 kB / 257.3 MB, free: 1.082 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.559e-05/0.007154, allocations: 63.34 kB / 257.4 MB, free: 1 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.092e-05/0.007175, allocations: 7.906 kB / 257.4 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.098e-05/0.007216, allocations: 55.36 kB / 257.4 MB, free: 0.9375 MB / 234.7 MB Notification: Performance of SimCode: time 5.91e-07/0.007217, allocations: 3.938 kB / 257.4 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of Templates: time 0.001773/0.00899, allocations: 0.5118 MB / 257.9 MB, free: 432 kB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BusUsage/BusUsage.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: 2.366769139189273]