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.0009346/0.0009346, allocations: 75.77 kB / 22.46 MB, free: 2.094 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.00101/0.00101, allocations: 160.1 kB / 25.75 MB, free: 8.957 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.8223/0.8223, allocations: 158.6 MB / 187.5 MB, free: 2.961 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.442e-06/1.442e-06, allocations: 0 / 251.1 MB, free: 7.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.464e-05, allocations: 5.266 kB / 251.1 MB, free: 7.926 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001995/0.002019, allocations: 1.631 MB / 252.7 MB, free: 6.277 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006102/0.00263, allocations: 463.7 kB / 253.2 MB, free: 5.816 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.918e-05/0.002679, allocations: 0 / 253.2 MB, free: 5.816 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.492e-05/0.002714, allocations: 11.92 kB / 253.2 MB, free: 5.805 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.297e-05/0.002787, allocations: 15.8 kB / 253.2 MB, free: 5.789 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001391/0.002926, allocations: 19.98 kB / 253.2 MB, free: 5.77 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.657e-05/0.003012, allocations: 63.78 kB / 253.3 MB, free: 5.707 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001388/0.003151, allocations: 39.88 kB / 253.3 MB, free: 5.668 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.003259, allocations: 39.84 kB / 253.4 MB, free: 5.629 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.171e-05/0.00331, allocations: 19.97 kB / 253.4 MB, free: 5.609 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.999e-05/0.00333, allocations: 11.94 kB / 253.4 MB, free: 5.598 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.036e-05/0.003341, allocations: 4 kB / 253.4 MB, free: 5.594 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 1.848e-05/0.003359, allocations: 11.98 kB / 253.4 MB, free: 5.582 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.545e-05/0.003384, allocations: 19.94 kB / 253.4 MB, free: 5.562 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.003488, allocations: 55.73 kB / 253.5 MB, free: 5.508 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.00349, allocations: 0 / 253.5 MB, free: 5.508 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.003491, allocations: 0 / 253.5 MB, free: 5.508 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.003495, allocations: 0 / 253.5 MB, free: 5.508 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.0003797/0.003874, allocations: 400.4 kB / 253.9 MB, free: 5.082 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.003909, allocations: 12.03 kB / 253.9 MB, free: 5.07 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.886e-05/0.003948, allocations: 12.89 kB / 253.9 MB, free: 5.059 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.265e-05/0.00404, allocations: 128.5 kB / 254 MB, free: 4.906 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/0.00406, allocations: 4.312 kB / 254 MB, free: 4.902 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.004071, allocations: 4.375 kB / 254 MB, free: 4.898 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001657/0.004237, allocations: 125.4 kB / 254.2 MB, free: 4.746 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.004245, allocations: 192 / 254.2 MB, free: 4.746 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.004256, allocations: 4.375 kB / 254.2 MB, free: 4.742 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.004265, allocations: 3.938 kB / 254.2 MB, free: 4.738 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.037e-05/0.004315, allocations: 31.84 kB / 254.2 MB, free: 4.707 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004598/0.004775, allocations: 0.8118 MB / 255 MB, free: 3.84 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.746e-05/0.004872, allocations: 135.4 kB / 255.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.895e-05/0.004921, allocations: 54.56 kB / 255.2 MB, free: 3.57 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.399e-05/0.004935, allocations: 4 kB / 255.2 MB, free: 3.566 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.004957, allocations: 37.39 kB / 255.2 MB, free: 3.52 MB / 234.7 MB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.004958, allocations: 0 / 255.2 MB, free: 3.52 MB / 234.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002096/0.005168, allocations: 78.08 kB / 255.3 MB, free: 3.438 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.005222, allocations: 162.2 kB / 255.5 MB, free: 3.242 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.268e-05/0.005305, allocations: 177.9 kB / 255.6 MB, free: 3.051 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 9.047e-06/0.005314, allocations: 25.7 kB / 255.7 MB, free: 3.02 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.32e-05/0.005367, allocations: 150.8 kB / 255.8 MB, free: 2.867 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.005387, allocations: 15.84 kB / 255.8 MB, free: 2.852 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/0.005418, allocations: 27.36 kB / 255.9 MB, free: 2.816 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.005524, allocations: 0.4922 MB / 256.3 MB, free: 2.312 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.722e-05/0.005541, allocations: 0 / 256.3 MB, free: 2.312 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.531e-05/0.005576, allocations: 54.42 kB / 256.4 MB, free: 2.238 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.751e-05/0.005634, allocations: 66.44 kB / 256.5 MB, free: 2.152 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.005637, allocations: 4 kB / 256.5 MB, free: 2.148 MB / 234.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 7.908e-05/0.005716, allocations: 69.58 kB / 256.5 MB, free: 2.074 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.005729, allocations: 8 kB / 256.5 MB, free: 2.066 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.005734, allocations: 3.984 kB / 256.5 MB, free: 2.062 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.005746, allocations: 160 / 256.5 MB, free: 2.062 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.635e-05/0.005813, allocations: 15.94 kB / 256.6 MB, free: 2.047 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.005819, allocations: 4 kB / 256.6 MB, free: 2.043 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.061e-05/0.00585, allocations: 11.92 kB / 256.6 MB, free: 2.031 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-06/0.005857, allocations: 4 kB / 256.6 MB, free: 2.027 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.648e-05/0.005923, allocations: 160.5 kB / 256.7 MB, free: 1.859 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.728e-05/0.00597, allocations: 11.95 kB / 256.7 MB, free: 1.848 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.376e-05/0.005994, allocations: 7.625 kB / 256.8 MB, free: 1.84 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.005997, allocations: 4 kB / 256.8 MB, free: 1.836 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.006001, allocations: 0 / 256.8 MB, free: 1.836 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.006005, allocations: 11.98 kB / 256.8 MB, free: 1.824 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002128/0.006218, allocations: 140.5 kB / 256.9 MB, free: 1.648 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.006219, allocations: 0 / 256.9 MB, free: 1.648 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.988e-05/0.006249, allocations: 15.92 kB / 256.9 MB, free: 1.633 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.006251, allocations: 0 / 256.9 MB, free: 1.633 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.006258, allocations: 4 kB / 256.9 MB, free: 1.629 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.006259, allocations: 0 / 256.9 MB, free: 1.629 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.006261, allocations: 4 kB / 256.9 MB, free: 1.625 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002232/0.006484, allocations: 0.6763 MB / 257.6 MB, free: 0.9258 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-06/0.006492, allocations: 7.953 kB / 257.6 MB, free: 0.918 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.006504, allocations: 8 kB / 257.6 MB, free: 0.9102 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.006611, allocations: 7.984 kB / 257.6 MB, free: 0.9023 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.006651, allocations: 11.98 kB / 257.6 MB, free: 0.8906 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.006654, allocations: 0 / 257.6 MB, free: 0.8906 MB / 234.7 MB Notification: Performance of sorting global known variables: time 3.858e-05/0.006693, allocations: 135.2 kB / 257.8 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006693, allocations: 0 / 257.8 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002491/0.006942, allocations: 12 kB / 257.8 MB, free: 0.7461 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 7.039e-05/0.007012, allocations: 91.25 kB / 257.9 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 9.671e-05/0.007109, allocations: 47.61 kB / 257.9 MB, free: 0.5938 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.00711, allocations: 0 / 257.9 MB, free: 0.5938 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.856e-05/0.007139, allocations: 27.62 kB / 257.9 MB, free: 0.5625 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.007462, allocations: 11.98 kB / 258 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000488/0.00795, allocations: 216.2 kB / 258.2 MB, free: 304 kB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.376e-05/0.008004, allocations: 59.34 kB / 258.2 MB, free: 224 kB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.251e-05/0.008026, allocations: 11.91 kB / 258.2 MB, free: 212 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.613e-05/0.008052, allocations: 16.44 kB / 258.3 MB, free: 196 kB / 234.7 MB Notification: Performance of SimCode: time 5.51e-07/0.008053, allocations: 0 / 258.3 MB, free: 196 kB / 234.7 MB Notification: Performance of Templates: time 0.002242/0.01029, allocations: 0.5425 MB / 258.8 MB, free: 15.65 MB / 250.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.448391222162172]