Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001786/0.001786, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.000263, allocations: 8 kB / 307.7 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1216, allocations: 51.53 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002075/0.1237, allocations: 1.322 MB / 360.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008931/0.1247, allocations: 490.8 kB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.075e-05/0.1247, allocations: 0 / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.865e-05/0.1248, allocations: 3.984 kB / 361.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.345e-05/0.1249, allocations: 11.88 kB / 361.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001671/0.125, allocations: 27.97 kB / 361.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00011/0.1252, allocations: 59.84 kB / 361.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.1253, allocations: 48.08 kB / 361.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.1255, allocations: 23.91 kB / 361.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.528e-05/0.1256, allocations: 19.86 kB / 361.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.439e-05/0.1256, allocations: 0 / 361.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.406e-05/0.1256, allocations: 11.94 kB / 361.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.393e-05/0.1256, allocations: 7.984 kB / 361.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.228e-05/0.1257, allocations: 53.52 kB / 361.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.1258, allocations: 60.05 kB / 361.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.1258, allocations: 0 / 361.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1258, allocations: 0 / 361.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1258, allocations: 0 / 361.4 MB, free: 11.12 MB / 302.1 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.0004429/0.1263, allocations: 383.1 kB / 361.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.1263, allocations: 8.031 kB / 361.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.1265, allocations: 24.83 kB / 361.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.1267, allocations: 188.2 kB / 362 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.1267, allocations: 4.375 kB / 362 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.686e-05/0.1267, allocations: 8.375 kB / 362 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002421/0.1269, allocations: 133.4 kB / 362.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.127, allocations: 0 / 362.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.127, allocations: 0 / 362.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.127, allocations: 0 / 362.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001943/0.1272, allocations: 67.89 kB / 362.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000627/0.1278, allocations: 0.6497 MB / 362.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/0.128, allocations: 124.9 kB / 363 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.1282, allocations: 56.41 kB / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.1282, allocations: 3.938 kB / 363 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.1282, allocations: 42.5 kB / 363.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.382e-06/0.1282, allocations: 4 kB / 363.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004812/0.1287, allocations: 130 kB / 363.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.815e-05/0.1288, allocations: 166.2 kB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.076e-05/0.1289, allocations: 121.7 kB / 363.5 MB, free: 8.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.1289, allocations: 29.7 kB / 363.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.318e-05/0.129, allocations: 95.97 kB / 363.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.269e-05/0.129, allocations: 19.97 kB / 363.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.852e-05/0.1291, allocations: 17.72 kB / 363.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1292, allocations: 314.8 kB / 363.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.815e-05/0.1293, allocations: 27.92 kB / 364 MB, free: 8.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.1294, allocations: 60.27 kB / 364 MB, free: 8.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.1296, allocations: 96.14 kB / 364.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1296, allocations: 0 / 364.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002582/0.1299, allocations: 109.6 kB / 364.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1299, allocations: 8 kB / 364.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1299, allocations: 0 / 364.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.1299, allocations: 0 / 364.2 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.974e-05/0.13, allocations: 15.98 kB / 364.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.1301, allocations: 4 kB / 364.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.361e-05/0.1301, allocations: 15.97 kB / 364.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.1302, allocations: 4 kB / 364.3 MB, free: 7.887 MB / 302.1 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 9.812e-05/0.1303, allocations: 125.7 kB / 364.4 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.217e-05/0.1304, allocations: 4 kB / 364.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.489e-05/0.1304, allocations: 19.48 kB / 364.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.1304, allocations: 0 / 364.4 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.1304, allocations: 4 kB / 364.4 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1304, allocations: 7.875 kB / 364.4 MB, free: 7.719 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003786/0.1308, allocations: 185.6 kB / 364.6 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1308, allocations: 4 kB / 364.6 MB, free: 7.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.216e-05/0.1309, allocations: 15.98 kB / 364.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.1309, allocations: 4 kB / 364.6 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1309, allocations: 0 / 364.6 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1309, allocations: 0 / 364.6 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1309, allocations: 4 kB / 364.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003721/0.1313, allocations: 0.4926 MB / 365.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.1314, allocations: 89 kB / 365.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.1314, allocations: 11.98 kB / 365.2 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.1316, allocations: 8.125 kB / 365.2 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.1317, allocations: 15.92 kB / 365.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.1317, allocations: 8 kB / 365.3 MB, free: 6.801 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.067e-05/0.1317, allocations: 91.27 kB / 365.3 MB, free: 6.711 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1318, allocations: 4 kB / 365.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003918/0.1322, allocations: 8 kB / 365.4 MB, free: 6.699 MB / 302.1 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 0.0001083/0.1323, allocations: 107.1 kB / 365.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002354/0.1325, allocations: 71.83 kB / 365.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1325, allocations: 320 / 365.5 MB, free: 6.516 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.1326, allocations: 39.92 kB / 365.6 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000533/0.1332, allocations: 8 kB / 365.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004817/0.1337, allocations: 228.9 kB / 365.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.134, allocations: 0.6926 MB / 366.5 MB, free: 5.488 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.649e-05/0.134, allocations: 4 kB / 366.5 MB, free: 5.484 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.149e-05/0.1341, allocations: 11.44 kB / 366.5 MB, free: 5.473 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1341, allocations: 0 / 366.5 MB, free: 5.473 MB / 302.1 MB Notification: Performance of Templates: time 0.002818/0.1369, allocations: 449.5 kB / 366.9 MB, free: 5.035 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches