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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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=5000,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=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008424/0.0008425, allocations: 96.62 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009754/0.0009754, allocations: 172.5 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004966/0.0004966, allocations: 8 kB / 281.4 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1116, allocations: 47.58 MB / 328.9 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001788/0.1134, allocations: 1.31 MB / 330.3 MB, free: 2.449 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006847/0.1142, allocations: 455.9 kB / 330.7 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.075e-05/0.1142, allocations: 4 kB / 330.7 MB, free: 1.992 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 2.564e-05/0.1142, allocations: 3.938 kB / 330.7 MB, free: 1.988 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.072e-05/0.1143, allocations: 3.938 kB / 330.7 MB, free: 1.984 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001502/0.1145, allocations: 19.97 kB / 330.7 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 9.136e-05/0.1146, allocations: 59.78 kB / 330.8 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.1148, allocations: 51.91 kB / 330.8 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.1149, allocations: 23.86 kB / 330.9 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.013e-05/0.115, allocations: 23.84 kB / 330.9 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.115, allocations: 4 kB / 330.9 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.131e-05/0.115, allocations: 0 / 330.9 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.065e-05/0.115, allocations: 4 kB / 330.9 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.041e-05/0.1151, allocations: 53.5 kB / 330.9 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.165e-05/0.1152, allocations: 59.84 kB / 331 MB, free: 1.684 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1152, allocations: 0 / 331 MB, free: 1.684 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1152, allocations: 0 / 331 MB, free: 1.684 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1152, allocations: 4 kB / 331 MB, free: 1.68 MB / 270.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.0004596/0.1157, allocations: 375.3 kB / 331.4 MB, free: 1.266 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.1157, allocations: 8.031 kB / 331.4 MB, free: 1.258 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.1158, allocations: 12.78 kB / 331.4 MB, free: 1.246 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.1159, allocations: 172.2 kB / 331.6 MB, free: 1.039 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.808e-05/0.1159, allocations: 8.375 kB / 331.6 MB, free: 1.031 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.116, allocations: 4.375 kB / 331.6 MB, free: 1.027 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/0.1162, allocations: 126.2 kB / 331.7 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.1162, allocations: 0 / 331.7 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.1162, allocations: 4 kB / 331.7 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1163, allocations: 4 kB / 331.7 MB, free: 0.875 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001879/0.1164, allocations: 63.91 kB / 331.8 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006003/0.1171, allocations: 0.6342 MB / 332.4 MB, free: 116 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.1173, allocations: 125.1 kB / 332.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.1174, allocations: 72.2 kB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.1174, allocations: 0 / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.1175, allocations: 38.5 kB / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 9.12e-07/0.1175, allocations: 0 / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004543/0.1179, allocations: 137.4 kB / 332.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/0.118, allocations: 162.8 kB / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.961e-05/0.1181, allocations: 121.8 kB / 333 MB, free: 15.35 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.1181, allocations: 25.7 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.1182, allocations: 99.98 kB / 333.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.1182, allocations: 19.78 kB / 333.2 MB, free: 15.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.928e-05/0.1183, allocations: 17.72 kB / 333.2 MB, free: 15.17 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1184, allocations: 318.8 kB / 333.5 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.939e-05/0.1185, allocations: 23.98 kB / 333.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.1186, allocations: 60.22 kB / 333.6 MB, free: 14.75 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.1188, allocations: 88.2 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1188, allocations: 3.938 kB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002358/0.119, allocations: 109.5 kB / 333.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.119, allocations: 10.59 kB / 333.8 MB, free: 14.53 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.1191, allocations: 4 kB / 333.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.1191, allocations: 8.141 kB / 333.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.925e-05/0.1192, allocations: 12 kB / 333.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1192, allocations: 0 / 333.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.05e-05/0.1193, allocations: 19.86 kB / 333.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.1193, allocations: 4 kB / 333.9 MB, free: 14.48 MB / 286.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 8.986e-05/0.1194, allocations: 117.8 kB / 334 MB, free: 14.36 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.05e-05/0.1195, allocations: 7.906 kB / 334 MB, free: 14.35 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.294e-05/0.1195, allocations: 23.47 kB / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1195, allocations: 0 / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1195, allocations: 128 / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.1195, allocations: 11.94 kB / 334 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00039/0.1199, allocations: 181.6 kB / 334.2 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.12, allocations: 0 / 334.2 MB, free: 14.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.287e-05/0.12, allocations: 23.91 kB / 334.2 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.12, allocations: 0 / 334.2 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.1201, allocations: 4 kB / 334.2 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.1201, allocations: 0 / 334.2 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1201, allocations: 4 kB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003789/0.1205, allocations: 0.4965 MB / 334.7 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.798e-05/0.1205, allocations: 81.11 kB / 334.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.1205, allocations: 3.938 kB / 334.8 MB, free: 13.44 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.1208, allocations: 11.98 kB / 334.8 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.212e-05/0.1208, allocations: 15.92 kB / 334.8 MB, free: 13.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.1208, allocations: 8 kB / 334.8 MB, free: 13.4 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.983e-05/0.1209, allocations: 91.27 kB / 334.9 MB, free: 13.31 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1209, allocations: 0 / 334.9 MB, free: 13.31 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003776/0.1213, allocations: 11.91 kB / 334.9 MB, free: 13.3 MB / 286.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.0001125/0.1214, allocations: 103.2 kB / 335 MB, free: 13.19 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002392/0.1216, allocations: 67.84 kB / 335.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1217, allocations: 7.938 kB / 335.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.1218, allocations: 40.47 kB / 335.1 MB, free: 13.08 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.1223, allocations: 8 kB / 335.2 MB, free: 13.07 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004573/0.1228, allocations: 226.1 kB / 335.4 MB, free: 12.81 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.123, allocations: 0.6926 MB / 336.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.014e-05/0.1231, allocations: 7.938 kB / 336.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.953e-05/0.1231, allocations: 7.438 kB / 336.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1231, allocations: 0 / 336.1 MB, free: 12.08 MB / 286.1 MB Notification: Performance of Templates: time 0.002612/0.1257, allocations: 465.5 kB / 336.5 MB, free: 11.62 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches