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.001104/0.001109, allocations: 113.3 kB / 17.28 MB, free: 6.301 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.001283/0.001283, allocations: 189.3 kB / 18.19 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.0015/0.001501, allocations: 51.92 kB / 280.1 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1295, allocations: 46.64 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003158/0.1327, allocations: 1.637 MB / 328.4 MB, free: 3.145 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007393/0.1335, allocations: 467.8 kB / 328.9 MB, free: 2.68 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.725e-05/0.1336, allocations: 0 / 328.9 MB, free: 2.68 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 5.231e-05/0.1336, allocations: 7.938 kB / 328.9 MB, free: 2.672 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001016/0.1337, allocations: 11.91 kB / 328.9 MB, free: 2.66 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.1339, allocations: 15.98 kB / 328.9 MB, free: 2.645 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.134, allocations: 55.8 kB / 329 MB, free: 2.59 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002173/0.1343, allocations: 51.91 kB / 329 MB, free: 2.539 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.1344, allocations: 31.86 kB / 329 MB, free: 2.508 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.311e-05/0.1345, allocations: 31.84 kB / 329.1 MB, free: 2.477 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/0.1345, allocations: 4 kB / 329.1 MB, free: 2.473 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.48e-05/0.1345, allocations: 8 kB / 329.1 MB, free: 2.465 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.717e-05/0.1346, allocations: 15.92 kB / 329.1 MB, free: 2.449 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.39e-05/0.1346, allocations: 23.88 kB / 329.1 MB, free: 2.426 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.1347, allocations: 67.94 kB / 329.2 MB, free: 2.359 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1348, allocations: 7.984 kB / 329.2 MB, free: 2.352 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1348, allocations: 0 / 329.2 MB, free: 2.352 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.1348, allocations: 4 kB / 329.2 MB, free: 2.348 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.0005483/0.1353, allocations: 371.3 kB / 329.6 MB, free: 1.938 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/0.1354, allocations: 12.03 kB / 329.6 MB, free: 1.926 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.2e-05/0.1354, allocations: 8.844 kB / 329.6 MB, free: 1.918 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.1356, allocations: 176.2 kB / 329.8 MB, free: 1.707 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.1356, allocations: 4.375 kB / 329.8 MB, free: 1.703 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.1356, allocations: 4.375 kB / 329.8 MB, free: 1.699 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.1359, allocations: 122.1 kB / 329.9 MB, free: 1.559 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1359, allocations: 3.984 kB / 329.9 MB, free: 1.555 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.1359, allocations: 8 kB / 329.9 MB, free: 1.547 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.1359, allocations: 0 / 329.9 MB, free: 1.547 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.1361, allocations: 55.89 kB / 329.9 MB, free: 1.492 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006786/0.1368, allocations: 0.6497 MB / 330.6 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.137, allocations: 116.9 kB / 330.7 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.1371, allocations: 56.39 kB / 330.8 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.1371, allocations: 0 / 330.8 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.1372, allocations: 42.5 kB / 330.8 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of pre-optimization done (n=6): time 8.71e-07/0.1372, allocations: 0 / 330.8 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004261/0.1376, allocations: 117.5 kB / 330.9 MB, free: 384 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.621e-05/0.1377, allocations: 158.2 kB / 331.1 MB, free: 188 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.42e-05/0.1378, allocations: 125.7 kB / 331.2 MB, free: 52 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.1378, allocations: 25.7 kB / 331.2 MB, free: 20 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.48e-05/0.1379, allocations: 100.6 kB / 331.3 MB, free: 15.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.1379, allocations: 23.7 kB / 331.3 MB, free: 15.89 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.138, allocations: 21.72 kB / 331.4 MB, free: 15.87 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1381, allocations: 314.8 kB / 331.7 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.136e-05/0.1382, allocations: 23.98 kB / 331.7 MB, free: 15.53 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.72e-05/0.1383, allocations: 48.22 kB / 331.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.1384, allocations: 84.2 kB / 331.8 MB, free: 15.37 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.1385, allocations: 0 / 331.8 MB, free: 15.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001976/0.1387, allocations: 93.59 kB / 331.9 MB, free: 15.27 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1387, allocations: 8 kB / 331.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1387, allocations: 3.984 kB / 331.9 MB, free: 15.26 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.1387, allocations: 4 kB / 331.9 MB, free: 15.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.417e-05/0.1388, allocations: 11.94 kB / 331.9 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.1388, allocations: 0 / 331.9 MB, free: 15.24 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.191e-05/0.1389, allocations: 20.08 kB / 332 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.1389, allocations: 0 / 332 MB, free: 15.22 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 0.0001002/0.139, allocations: 117.8 kB / 332.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-05/0.1391, allocations: 7.906 kB / 332.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.314e-05/0.1391, allocations: 19.59 kB / 332.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1392, allocations: 0 / 332.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.1392, allocations: 8 kB / 332.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1392, allocations: 3.938 kB / 332.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003454/0.1395, allocations: 185.6 kB / 332.3 MB, free: 14.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1395, allocations: 4 kB / 332.3 MB, free: 14.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.435e-05/0.1396, allocations: 23.86 kB / 332.3 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1396, allocations: 0 / 332.3 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.1396, allocations: 8 kB / 332.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1396, allocations: 0 / 332.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1397, allocations: 0 / 332.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003443/0.14, allocations: 0.4887 MB / 332.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.735e-05/0.14, allocations: 81.02 kB / 332.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.1401, allocations: 4 kB / 332.9 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001967/0.1403, allocations: 7.984 kB / 332.9 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.713e-05/0.1403, allocations: 19.92 kB / 332.9 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.1404, allocations: 7.938 kB / 332.9 MB, free: 14.15 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.817e-05/0.1404, allocations: 91.7 kB / 333 MB, free: 14.06 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1404, allocations: 0 / 333 MB, free: 14.06 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003477/0.1408, allocations: 8 kB / 333 MB, free: 14.05 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.0001075/0.1409, allocations: 99.19 kB / 333.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002259/0.1411, allocations: 63.97 kB / 333.2 MB, free: 13.88 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1411, allocations: 0 / 333.2 MB, free: 13.88 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.599e-05/0.1412, allocations: 35.91 kB / 333.2 MB, free: 13.85 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/0.1417, allocations: 8 kB / 333.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004469/0.1422, allocations: 219.5 kB / 333.5 MB, free: 13.59 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.1425, allocations: 0.6962 MB / 334.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.664e-05/0.1425, allocations: 7.984 kB / 334.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.1426, allocations: 15.42 kB / 334.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1426, allocations: 0 / 334.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of Templates: time 0.00252/0.1451, allocations: 476.7 kB / 334.6 MB, free: 12.38 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