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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 123.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 188.3 kB / 21.39 MB, free: 1.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 225.6 MB / 249.8 MB, free: 3.742 MB / 190.1 MB " [Timeout remaining time 178] 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) 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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,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=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 47.92 kB / 366.8 MB, free: 388 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1083, allocations: 52.14 MB / 418.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003262/0.1116, allocations: 1.876 MB / 420.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.1128, allocations: 0.5882 MB / 421.4 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.7e-05/0.1129, allocations: 3.938 kB / 421.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001672/0.1131, allocations: 35.66 kB / 421.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.1133, allocations: 39.59 kB / 421.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.1135, allocations: 63.88 kB / 421.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002629/0.1138, allocations: 167.5 kB / 421.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001614/0.114, allocations: 41.67 kB / 421.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.1141, allocations: 83.62 kB / 421.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.1143, allocations: 79.62 kB / 421.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.295e-05/0.1143, allocations: 12 kB / 421.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.331e-05/0.1144, allocations: 19.98 kB / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.584e-05/0.1145, allocations: 51.77 kB / 422 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.953e-05/0.1146, allocations: 75.55 kB / 422.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003016/0.1149, allocations: 195 kB / 422.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1149, allocations: 0 / 422.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.1149, allocations: 0 / 422.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.1149, allocations: 0 / 422.3 MB, free: 8.812 MB / 350.1 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.001031/0.1159, allocations: 0.5104 MB / 422.8 MB, free: 8.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.1159, allocations: 8.031 kB / 422.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.044e-05/0.116, allocations: 24.8 kB / 422.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/0.1164, allocations: 239.8 kB / 423 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.1164, allocations: 12.66 kB / 423 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.1164, allocations: 15.94 kB / 423.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004215/0.1169, allocations: 210.8 kB / 423.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1169, allocations: 0 / 423.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.017e-05/0.1169, allocations: 8 kB / 423.3 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/0.1169, allocations: 4 kB / 423.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.1172, allocations: 147.8 kB / 423.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.1184, allocations: 0.7779 MB / 424.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000329/0.1188, allocations: 153.1 kB / 424.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.1189, allocations: 69.8 kB / 424.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.499e-05/0.119, allocations: 8 kB / 424.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002912/0.1193, allocations: 159.3 kB / 424.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.1193, allocations: 0 / 424.6 MB, free: 6.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006769/0.1199, allocations: 249.4 kB / 424.8 MB, free: 6.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.616e-05/0.12, allocations: 85.09 kB / 424.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.1202, allocations: 199 kB / 425.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.658e-05/0.1202, allocations: 33.7 kB / 425.1 MB, free: 5.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.1204, allocations: 148.3 kB / 425.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.459e-05/0.1204, allocations: 47.58 kB / 425.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.829e-05/0.1205, allocations: 41.7 kB / 425.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.1207, allocations: 330.8 kB / 425.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.1208, allocations: 67.95 kB / 425.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.121, allocations: 130.8 kB / 425.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003531/0.1214, allocations: 199.4 kB / 426.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.1214, allocations: 0 / 426.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004713/0.1218, allocations: 249.2 kB / 426.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1219, allocations: 8.188 kB / 426.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1219, allocations: 7.984 kB / 426.3 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.798e-05/0.1219, allocations: 4 kB / 426.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.1221, allocations: 31.98 kB / 426.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.1221, allocations: 7.938 kB / 426.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.1222, allocations: 31.86 kB / 426.4 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.1222, allocations: 8 kB / 426.4 MB, free: 4.32 MB / 350.1 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.0001541/0.1224, allocations: 146.4 kB / 426.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.137e-05/0.1224, allocations: 23.84 kB / 426.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004643/0.1229, allocations: 214.9 kB / 426.8 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1229, allocations: 0 / 426.8 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.1229, allocations: 96 / 426.8 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.1229, allocations: 7.875 kB / 426.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.1232, allocations: 269.4 kB / 427.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1232, allocations: 0 / 427.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.1233, allocations: 23.97 kB / 427.1 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1233, allocations: 4 kB / 427.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.1233, allocations: 8 kB / 427.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.1233, allocations: 4 kB / 427.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1233, allocations: 0 / 427.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004383/0.1238, allocations: 229.6 kB / 427.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.732e-05/0.1239, allocations: 92.95 kB / 427.4 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.1239, allocations: 8 kB / 427.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.124, allocations: 19.97 kB / 427.4 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.83e-05/0.1241, allocations: 15.98 kB / 427.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.1241, allocations: 7.984 kB / 427.5 MB, free: 3.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.1242, allocations: 148.3 kB / 427.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1242, allocations: 0 / 427.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002711/0.1245, allocations: 39.95 kB / 427.7 MB, free: 2.977 MB / 350.1 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.0001631/0.1247, allocations: 107.2 kB / 427.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004085/0.1251, allocations: 171.7 kB / 427.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1251, allocations: 0 / 427.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.1253, allocations: 79.89 kB / 428 MB, free: 2.617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.1256, allocations: 50.64 kB / 428.1 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00074/0.1264, allocations: 409.6 kB / 428.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004516/0.1268, allocations: 0.728 MB / 429.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.443e-05/0.1269, allocations: 31.42 kB / 429.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1269, allocations: 0 / 429.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of Templates: time 0.004725/0.1316, allocations: 2.424 MB / 431.6 MB, free: 14.95 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.850153755862266]