Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 148.2 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9316/0.9316, allocations: 173.3 MB / 201.4 MB, free: 9.234 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.576e-05, allocations: 2.312 kB / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002156/0.002181, allocations: 1.627 MB / 270 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005673/0.002749, allocations: 422.8 kB / 270.4 MB, free: 4.176 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.134e-05/0.0028, allocations: 4 kB / 270.4 MB, free: 4.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.348e-05/0.002833, allocations: 7.938 kB / 270.4 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.379e-05/0.002917, allocations: 19.73 kB / 270.5 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001352/0.003052, allocations: 19.97 kB / 270.5 MB, free: 4.125 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.838e-05/0.003131, allocations: 59.78 kB / 270.5 MB, free: 4.066 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.003265, allocations: 27.97 kB / 270.6 MB, free: 4.039 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.003383, allocations: 39.84 kB / 270.6 MB, free: 4 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.51e-05/0.003438, allocations: 23.91 kB / 270.6 MB, free: 3.977 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.003455, allocations: 4 kB / 270.6 MB, free: 3.973 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.017e-06/0.003464, allocations: 8 kB / 270.6 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.01e-05/0.003485, allocations: 19.92 kB / 270.7 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.538e-05/0.00351, allocations: 19.92 kB / 270.7 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.003613, allocations: 51.75 kB / 270.7 MB, free: 3.875 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.003616, allocations: 0 / 270.7 MB, free: 3.875 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.003617, allocations: 0 / 270.7 MB, free: 3.875 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.377e-06/0.00362, allocations: 0 / 270.7 MB, free: 3.875 MB / 250.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.0003487/0.003969, allocations: 400.4 kB / 271.1 MB, free: 3.449 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.004005, allocations: 8.922 kB / 271.1 MB, free: 3.441 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.36e-05/0.004039, allocations: 16.89 kB / 271.1 MB, free: 3.426 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.31e-05/0.004112, allocations: 132.4 kB / 271.3 MB, free: 3.27 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.004133, allocations: 8.375 kB / 271.3 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.679e-06/0.004143, allocations: 8.375 kB / 271.3 MB, free: 3.254 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000134/0.004277, allocations: 116.9 kB / 271.4 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.004283, allocations: 0 / 271.4 MB, free: 3.109 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.004293, allocations: 8 kB / 271.4 MB, free: 3.102 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.004297, allocations: 0 / 271.4 MB, free: 3.102 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.305e-05/0.00433, allocations: 23.86 kB / 271.4 MB, free: 3.078 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004333/0.004764, allocations: 0.7811 MB / 272.2 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.004868, allocations: 143.3 kB / 272.4 MB, free: 2.047 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.166e-05/0.00491, allocations: 54.56 kB / 272.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.004928, allocations: 3.984 kB / 272.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.004951, allocations: 41.39 kB / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.004952, allocations: 0 / 272.5 MB, free: 1.918 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001826/0.005135, allocations: 81.44 kB / 272.5 MB, free: 1.832 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.005187, allocations: 154.8 kB / 272.7 MB, free: 1.645 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.943e-05/0.005267, allocations: 185.8 kB / 272.9 MB, free: 1.445 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.005278, allocations: 33.7 kB / 272.9 MB, free: 1.406 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.73e-05/0.005326, allocations: 142.8 kB / 273 MB, free: 1.262 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.727e-05/0.005343, allocations: 15.89 kB / 273.1 MB, free: 1.246 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.005376, allocations: 31.36 kB / 273.1 MB, free: 1.207 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.005485, allocations: 0.4883 MB / 273.6 MB, free: 0.707 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.575e-05/0.005501, allocations: 4 kB / 273.6 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.006e-05/0.005531, allocations: 46.42 kB / 273.6 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.294e-05/0.005584, allocations: 66.36 kB / 273.7 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.005586, allocations: 0 / 273.7 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 7.969e-05/0.005665, allocations: 69.52 kB / 273.8 MB, free: 488 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.005679, allocations: 4 kB / 273.8 MB, free: 484 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.005685, allocations: 4 kB / 273.8 MB, free: 480 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.005695, allocations: 0 / 273.8 MB, free: 480 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.739e-05/0.005762, allocations: 15.92 kB / 273.8 MB, free: 464 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-06/0.005765, allocations: 288 / 273.8 MB, free: 464 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.953e-05/0.005795, allocations: 16 kB / 273.8 MB, free: 448 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.005802, allocations: 7.984 kB / 273.8 MB, free: 440 kB / 250.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 7.026e-05/0.005872, allocations: 160.5 kB / 274 MB, free: 268 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.834e-05/0.005921, allocations: 7.953 kB / 274 MB, free: 260 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.567e-05/0.005946, allocations: 11.62 kB / 274 MB, free: 244 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.00595, allocations: 0 / 274 MB, free: 244 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.005953, allocations: 4 kB / 274 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.005956, allocations: 0 / 274 MB, free: 240 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.006167, allocations: 121.1 kB / 274.1 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.006169, allocations: 0 / 274.1 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.575e-05/0.006205, allocations: 19.92 kB / 274.1 MB, free: 72 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.006208, allocations: 4 kB / 274.1 MB, free: 68 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.07e-06/0.006213, allocations: 0 / 274.1 MB, free: 68 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.006214, allocations: 0 / 274.1 MB, free: 68 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.006215, allocations: 4 kB / 274.1 MB, free: 64 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002661/0.006482, allocations: 0.6763 MB / 274.8 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.135e-05/0.006493, allocations: 11.92 kB / 274.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.708e-06/0.006503, allocations: 4 kB / 274.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.006615, allocations: 4 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.006652, allocations: 15.98 kB / 274.8 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.006656, allocations: 0 / 274.8 MB, free: 15.33 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.376e-05/0.0067, allocations: 131.2 kB / 275 MB, free: 15.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0067, allocations: 0 / 275 MB, free: 15.2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002407/0.00694, allocations: 15.95 kB / 275 MB, free: 15.18 MB / 266.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 8.921e-05/0.00703, allocations: 103.1 kB / 275.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.064e-05/0.00711, allocations: 35.55 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.007112, allocations: 320 / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.55e-05/0.007137, allocations: 35.59 kB / 275.2 MB, free: 15 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.007458, allocations: 8 kB / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000489/0.007947, allocations: 204.6 kB / 275.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.976e-05/0.007996, allocations: 63.34 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.345e-05/0.00802, allocations: 320 / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.519e-05/0.008065, allocations: 78.2 kB / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of SimCode: time 7.72e-07/0.008066, allocations: 0 / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of Templates: time 0.002169/0.01024, allocations: 0.6116 MB / 276.1 MB, free: 13.98 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.47113481676206]