Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 188.9 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.246/1.246, allocations: 222.9 MB / 240.9 MB, free: 10.97 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.0009406/0.0009406, allocations: 99.11 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009044/0.0009046, allocations: 43.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2048, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00227/0.2072, allocations: 1.913 MB / 401.4 MB, free: 31.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006957/0.2079, allocations: 0.5797 MB / 402 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.728e-05/0.208, allocations: 3.938 kB / 402 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.2081, allocations: 15.86 kB / 402 MB, free: 30.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001072/0.2082, allocations: 31.72 kB / 402 MB, free: 30.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.2084, allocations: 47.97 kB / 402.1 MB, free: 30.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001416/0.2085, allocations: 171.2 kB / 402.2 MB, free: 30.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001278/0.2087, allocations: 61.64 kB / 402.3 MB, free: 30.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.882e-05/0.2087, allocations: 67.7 kB / 402.3 MB, free: 30.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.2089, allocations: 79.56 kB / 402.4 MB, free: 30.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.2089, allocations: 8 kB / 402.4 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.426e-05/0.2089, allocations: 19.98 kB / 402.4 MB, free: 30.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.199e-05/0.209, allocations: 39.84 kB / 402.5 MB, free: 30.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.156e-05/0.2091, allocations: 75.47 kB / 402.6 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.2092, allocations: 161 kB / 402.7 MB, free: 30.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2092, allocations: 0 / 402.7 MB, free: 30.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.2092, allocations: 0 / 402.7 MB, free: 30.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.2093, allocations: 0 / 402.7 MB, free: 30.09 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.0006651/0.2099, allocations: 0.5066 MB / 403.2 MB, free: 29.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.694e-05/0.21, allocations: 12.03 kB / 403.2 MB, free: 29.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.496e-05/0.21, allocations: 20.66 kB / 403.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.2102, allocations: 235.9 kB / 403.5 MB, free: 29.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.2102, allocations: 12.66 kB / 403.5 MB, free: 29.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.2102, allocations: 16.12 kB / 403.5 MB, free: 29.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.2105, allocations: 207.7 kB / 403.7 MB, free: 28.99 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.318e-06/0.2105, allocations: 4 kB / 403.7 MB, free: 28.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.2105, allocations: 4 kB / 403.7 MB, free: 28.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.2105, allocations: 7.938 kB / 403.7 MB, free: 28.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.2108, allocations: 147.8 kB / 403.9 MB, free: 28.83 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007634/0.2116, allocations: 0.7701 MB / 404.6 MB, free: 28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.2118, allocations: 169 kB / 404.8 MB, free: 27.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.2119, allocations: 77.81 kB / 404.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.212, allocations: 3.984 kB / 404.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.2122, allocations: 149.8 kB / 405 MB, free: 27.56 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.2122, allocations: 0 / 405 MB, free: 27.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004299/0.2126, allocations: 261.4 kB / 405.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/0.2126, allocations: 81.11 kB / 405.4 MB, free: 27.2 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.2128, allocations: 199 kB / 405.6 MB, free: 27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.2128, allocations: 33.7 kB / 405.6 MB, free: 26.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.183e-05/0.2128, allocations: 148 kB / 405.7 MB, free: 26.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.2129, allocations: 43.39 kB / 405.8 MB, free: 26.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.097e-05/0.2129, allocations: 45.7 kB / 405.8 MB, free: 26.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.017e-05/0.213, allocations: 334.8 kB / 406.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.2131, allocations: 67.95 kB / 406.2 MB, free: 26.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.2132, allocations: 124 kB / 406.3 MB, free: 26.17 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.2135, allocations: 202.7 kB / 406.5 MB, free: 25.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2135, allocations: 0 / 406.5 MB, free: 25.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003229/0.2138, allocations: 245.2 kB / 406.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.2138, allocations: 4 kB / 406.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.2138, allocations: 7.984 kB / 406.8 MB, free: 25.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.2139, allocations: 0 / 406.8 MB, free: 25.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.214, allocations: 39.92 kB / 406.8 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.71e-06/0.214, allocations: 0 / 406.8 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.2142, allocations: 39.91 kB / 406.9 MB, free: 25.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.2142, allocations: 8.109 kB / 406.9 MB, free: 25.61 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 7.882e-05/0.2143, allocations: 153.6 kB / 407 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/0.2143, allocations: 15.81 kB / 407 MB, free: 25.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003305/0.2146, allocations: 207.6 kB / 407.3 MB, free: 25.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.2146, allocations: 4 kB / 407.3 MB, free: 25.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2146, allocations: 4 kB / 407.3 MB, free: 25.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2147, allocations: 0 / 407.3 MB, free: 25.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000158/0.2148, allocations: 269.4 kB / 407.5 MB, free: 24.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2148, allocations: 4 kB / 407.5 MB, free: 24.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.645e-05/0.2149, allocations: 23.92 kB / 407.5 MB, free: 24.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2149, allocations: 0 / 407.5 MB, free: 24.87 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.215, allocations: 4 kB / 407.6 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.215, allocations: 4.094 kB / 407.6 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.215, allocations: 3.938 kB / 407.6 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/0.2155, allocations: 0.8793 MB / 408.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.962e-05/0.2155, allocations: 96.83 kB / 408.5 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.097e-05/0.2155, allocations: 0 / 408.5 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.2157, allocations: 23.91 kB / 408.6 MB, free: 23.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.505e-05/0.2157, allocations: 19.97 kB / 408.6 MB, free: 23.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-06/0.2157, allocations: 12 kB / 408.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.15e-05/0.2158, allocations: 140.6 kB / 408.7 MB, free: 23.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2158, allocations: 0 / 408.7 MB, free: 23.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003126/0.2161, allocations: 35.94 kB / 408.8 MB, free: 23.57 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 9.759e-05/0.2162, allocations: 107.2 kB / 408.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002889/0.2165, allocations: 183.2 kB / 409 MB, free: 23.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.2165, allocations: 4 kB / 409 MB, free: 23.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001332/0.2167, allocations: 75.91 kB / 409.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.217, allocations: 35.97 kB / 409.2 MB, free: 23.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005785/0.2176, allocations: 0.5799 MB / 409.7 MB, free: 22.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.2177, allocations: 0.7358 MB / 410.5 MB, free: 21.79 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.512e-05/0.2178, allocations: 41.5 kB / 410.5 MB, free: 21.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.88e-05/0.2178, allocations: 19.44 kB / 410.5 MB, free: 21.73 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2178, allocations: 0 / 410.5 MB, free: 21.73 MB / 298.7 MB Notification: Performance of Templates: time 0.003623/0.2215, allocations: 1.956 MB / 412.5 MB, free: 19.8 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches