Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000971/0.000971, allocations: 100.4 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009429/0.0009429, allocations: 47.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2064/0.2073, allocations: 50.46 MB / 407 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002576/0.21, allocations: 1.913 MB / 409 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008606/0.2109, allocations: 0.632 MB / 409.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.687e-05/0.211, allocations: 0 / 409.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.2111, allocations: 27.8 kB / 409.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.2112, allocations: 23.78 kB / 409.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.2114, allocations: 59.88 kB / 409.7 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001498/0.2116, allocations: 159.4 kB / 409.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.2117, allocations: 69.62 kB / 409.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.2119, allocations: 75.64 kB / 410 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.212, allocations: 79.61 kB / 410.1 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.212, allocations: 8 kB / 410.1 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.364e-05/0.2121, allocations: 16 kB / 410.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.401e-05/0.2122, allocations: 47.83 kB / 410.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.938e-05/0.2122, allocations: 71.48 kB / 410.2 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.2124, allocations: 165 kB / 410.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2124, allocations: 3.938 kB / 410.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2124, allocations: 0 / 410.4 MB, free: 24.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.2124, allocations: 0 / 410.4 MB, free: 24.45 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006759/0.2131, allocations: 0.5183 MB / 410.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.2131, allocations: 12.03 kB / 410.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.2133, allocations: 28.66 kB / 410.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001883/0.2135, allocations: 235.7 kB / 411.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.2135, allocations: 16.59 kB / 411.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.2135, allocations: 16.38 kB / 411.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.2138, allocations: 207.8 kB / 411.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.2138, allocations: 0 / 411.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.2138, allocations: 4 kB / 411.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.2139, allocations: 4 kB / 411.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.2141, allocations: 143.8 kB / 411.6 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008526/0.215, allocations: 0.7779 MB / 412.3 MB, free: 22.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.2152, allocations: 157 kB / 412.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.2154, allocations: 85.73 kB / 412.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.2154, allocations: 4 kB / 412.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002122/0.2156, allocations: 143.7 kB / 412.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.2156, allocations: 0 / 412.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004847/0.2161, allocations: 257.4 kB / 413 MB, free: 21.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.2162, allocations: 81.09 kB / 413 MB, free: 21.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.2163, allocations: 203 kB / 413.2 MB, free: 21.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.2164, allocations: 33.7 kB / 413.3 MB, free: 21.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.934e-05/0.2164, allocations: 144 kB / 413.4 MB, free: 21.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.2165, allocations: 47.44 kB / 413.5 MB, free: 21.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.798e-05/0.2165, allocations: 41.7 kB / 413.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.512e-05/0.2166, allocations: 326.9 kB / 413.8 MB, free: 20.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.2167, allocations: 75.83 kB / 413.9 MB, free: 20.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.2169, allocations: 134.7 kB / 414 MB, free: 20.51 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.2171, allocations: 202.6 kB / 414.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.2172, allocations: 0 / 414.2 MB, free: 20.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003491/0.2175, allocations: 245.2 kB / 414.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2175, allocations: 8.031 kB / 414.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2176, allocations: 4 kB / 414.5 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.181e-05/0.2176, allocations: 7.984 kB / 414.5 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.2177, allocations: 31.92 kB / 414.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.2178, allocations: 4.703 kB / 414.5 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.2179, allocations: 31.81 kB / 414.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.2179, allocations: 4 kB / 414.6 MB, free: 19.95 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001211/0.2181, allocations: 151.2 kB / 414.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.2181, allocations: 19.8 kB / 414.7 MB, free: 19.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003885/0.2185, allocations: 214.9 kB / 414.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.2185, allocations: 4 kB / 414.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.2185, allocations: 0 / 414.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2185, allocations: 0 / 414.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.2187, allocations: 273.3 kB / 415.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.2187, allocations: 0 / 415.2 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.2189, allocations: 31.97 kB / 415.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.2189, allocations: 0 / 415.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.2189, allocations: 4 kB / 415.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2189, allocations: 4 kB / 415.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.2189, allocations: 0 / 415.2 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005758/0.2195, allocations: 0.8782 MB / 416.1 MB, free: 18.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.667e-05/0.2195, allocations: 92.83 kB / 416.2 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.2196, allocations: 4 kB / 416.2 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.2197, allocations: 19.97 kB / 416.2 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.895e-05/0.2198, allocations: 15.92 kB / 416.2 MB, free: 18.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.2198, allocations: 4 kB / 416.3 MB, free: 18.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.219e-05/0.2199, allocations: 152.4 kB / 416.4 MB, free: 17.95 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2199, allocations: 4 kB / 416.4 MB, free: 17.95 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003264/0.2202, allocations: 39.94 kB / 416.4 MB, free: 17.91 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001228/0.2203, allocations: 95.25 kB / 416.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003007/0.2206, allocations: 171.7 kB / 416.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2206, allocations: 4.656 kB / 416.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.2208, allocations: 91.88 kB / 416.8 MB, free: 17.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003112/0.2211, allocations: 46.84 kB / 416.8 MB, free: 17.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006054/0.2217, allocations: 0.5678 MB / 417.4 MB, free: 16.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001361/0.2219, allocations: 0.7436 MB / 418.2 MB, free: 16.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.506e-05/0.222, allocations: 33.53 kB / 418.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.222, allocations: 23.42 kB / 418.2 MB, free: 16.07 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.222, allocations: 0 / 418.2 MB, free: 16.07 MB / 298.7 MB Notification: Performance of Templates: time 0.003913/0.2259, allocations: 1.958 MB / 420.2 MB, free: 14.14 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches