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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000951/0.000951, allocations: 100.1 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008226/0.0008228, allocations: 43.92 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2088, allocations: 49.43 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002261/0.2112, allocations: 1.657 MB / 401.1 MB, free: 31.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004413/0.2116, allocations: 415.1 kB / 401.5 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.316e-05/0.2117, allocations: 1.062 kB / 401.5 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.002e-05/0.2117, allocations: 7.922 kB / 401.5 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.617e-05/0.2118, allocations: 11.88 kB / 401.5 MB, free: 31.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001174/0.2119, allocations: 23.92 kB / 401.6 MB, free: 31.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.707e-05/0.212, allocations: 47.86 kB / 401.6 MB, free: 31.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.2121, allocations: 51.88 kB / 401.7 MB, free: 31.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.329e-05/0.2122, allocations: 31.86 kB / 401.7 MB, free: 31.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.212e-05/0.2123, allocations: 23.86 kB / 401.7 MB, free: 31.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.2123, allocations: 4 kB / 401.7 MB, free: 31.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.23e-05/0.2123, allocations: 4 kB / 401.7 MB, free: 31.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.787e-05/0.2124, allocations: 19.91 kB / 401.7 MB, free: 31.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.055e-05/0.2124, allocations: 31.81 kB / 401.8 MB, free: 31.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.93e-05/0.2125, allocations: 55.78 kB / 401.8 MB, free: 31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2125, allocations: 7.938 kB / 401.8 MB, free: 31 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2125, allocations: 0 / 401.8 MB, free: 31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.2125, allocations: 0 / 401.8 MB, free: 31 MB / 298.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.0003907/0.2129, allocations: 378 kB / 402.2 MB, free: 30.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.2129, allocations: 12.03 kB / 402.2 MB, free: 30.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.113e-05/0.213, allocations: 8.844 kB / 402.2 MB, free: 30.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.615e-05/0.2131, allocations: 180.2 kB / 402.4 MB, free: 30.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.403e-05/0.2131, allocations: 384 / 402.4 MB, free: 30.35 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.677e-05/0.2131, allocations: 16.06 kB / 402.4 MB, free: 30.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.2133, allocations: 110 kB / 402.5 MB, free: 30.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.2133, allocations: 3.984 kB / 402.5 MB, free: 30.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.2133, allocations: 4 kB / 402.5 MB, free: 30.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.2134, allocations: 7.984 kB / 402.5 MB, free: 30.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.2135, allocations: 55.91 kB / 402.6 MB, free: 30.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000432/0.214, allocations: 0.6419 MB / 403.2 MB, free: 29.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.2141, allocations: 113.1 kB / 403.3 MB, free: 29.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.831e-05/0.2142, allocations: 52.33 kB / 403.4 MB, free: 29.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.2142, allocations: 3.938 kB / 403.4 MB, free: 29.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.2142, allocations: 42.56 kB / 403.4 MB, free: 29.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.2142, allocations: 0 / 403.4 MB, free: 29.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003777/0.2146, allocations: 117.4 kB / 403.6 MB, free: 29.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/0.2147, allocations: 178.7 kB / 403.7 MB, free: 28.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.415e-05/0.2147, allocations: 117.8 kB / 403.8 MB, free: 28.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.525e-06/0.2148, allocations: 25.7 kB / 403.9 MB, free: 28.66 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.071e-05/0.2148, allocations: 92.05 kB / 404 MB, free: 28.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.2148, allocations: 27.72 kB / 404 MB, free: 28.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.111e-05/0.2148, allocations: 17.72 kB / 404 MB, free: 28.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.341e-05/0.2149, allocations: 318.8 kB / 404.3 MB, free: 28.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.972e-05/0.215, allocations: 23.98 kB / 404.3 MB, free: 28.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.135e-05/0.215, allocations: 52.28 kB / 404.4 MB, free: 28.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.2152, allocations: 76.2 kB / 404.5 MB, free: 28.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2152, allocations: 4 kB / 404.5 MB, free: 28.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001787/0.2154, allocations: 101.4 kB / 404.6 MB, free: 27.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.2154, allocations: 8 kB / 404.6 MB, free: 27.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2154, allocations: 4.156 kB / 404.6 MB, free: 27.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.2154, allocations: 4 kB / 404.6 MB, free: 27.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.543e-05/0.2155, allocations: 11.94 kB / 404.6 MB, free: 27.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.2155, allocations: 3.984 kB / 404.6 MB, free: 27.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.643e-05/0.2156, allocations: 11.94 kB / 404.6 MB, free: 27.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.2156, allocations: 0 / 404.6 MB, free: 27.86 MB / 298.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 5.248e-05/0.2157, allocations: 125.7 kB / 404.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.2158, allocations: 7.906 kB / 404.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.488e-05/0.2158, allocations: 19.52 kB / 404.8 MB, free: 27.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.2158, allocations: 3.938 kB / 404.8 MB, free: 27.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2158, allocations: 4 kB / 404.8 MB, free: 27.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2158, allocations: 0 / 404.8 MB, free: 27.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002891/0.2161, allocations: 181.6 kB / 404.9 MB, free: 27.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2161, allocations: 0 / 404.9 MB, free: 27.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.074e-05/0.2162, allocations: 15.98 kB / 405 MB, free: 27.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-06/0.2162, allocations: 0 / 405 MB, free: 27.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.2162, allocations: 0 / 405 MB, free: 27.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.2162, allocations: 7.938 kB / 405 MB, free: 27.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2162, allocations: 8 kB / 405 MB, free: 27.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004083/0.2166, allocations: 1.065 MB / 406 MB, free: 26.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.925e-05/0.2167, allocations: 84.95 kB / 406.1 MB, free: 26.21 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.2167, allocations: 7.984 kB / 406.1 MB, free: 26.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.2169, allocations: 4 kB / 406.1 MB, free: 26.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.141e-05/0.2169, allocations: 11.98 kB / 406.1 MB, free: 26.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.2169, allocations: 4 kB / 406.1 MB, free: 26.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.747e-05/0.217, allocations: 91.27 kB / 406.2 MB, free: 26.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.217, allocations: 4 kB / 406.2 MB, free: 26.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000439/0.2174, allocations: 8 kB / 406.3 MB, free: 26.08 MB / 298.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 6.682e-05/0.2175, allocations: 103.2 kB / 406.4 MB, free: 25.97 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001834/0.2177, allocations: 59.83 kB / 406.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2177, allocations: 0 / 406.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.244e-05/0.2178, allocations: 36.23 kB / 406.4 MB, free: 25.88 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.2182, allocations: 10.12 kB / 406.5 MB, free: 25.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003682/0.2186, allocations: 343.5 kB / 406.8 MB, free: 25.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.2188, allocations: 0.6926 MB / 407.5 MB, free: 24.76 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.256e-05/0.2188, allocations: 7.984 kB / 407.5 MB, free: 24.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.286e-05/0.2188, allocations: 7.438 kB / 407.5 MB, free: 24.75 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2188, allocations: 4 kB / 407.5 MB, free: 24.74 MB / 298.7 MB Notification: Performance of Templates: time 0.001912/0.2207, allocations: 478 kB / 408 MB, free: 24.28 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches