Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 211.5 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 51.91 kB / 379 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.24, allocations: 53.37 MB / 432.3 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003848/0.2439, allocations: 1.821 MB / 434.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.2454, allocations: 0.6271 MB / 434.8 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.2455, allocations: 7.938 kB / 434.8 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.2456, allocations: 19.73 kB / 434.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001727/0.2458, allocations: 35.66 kB / 434.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003608/0.2462, allocations: 83.78 kB / 434.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002644/0.2464, allocations: 163.4 kB / 435.1 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.2466, allocations: 56.3 kB / 435.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.2468, allocations: 79.7 kB / 435.2 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001684/0.2469, allocations: 79.55 kB / 435.3 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.678e-05/0.247, allocations: 12 kB / 435.3 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.527e-05/0.2471, allocations: 23.98 kB / 435.3 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.669e-05/0.2471, allocations: 39.84 kB / 435.4 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.375e-05/0.2472, allocations: 71.59 kB / 435.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003302/0.2476, allocations: 202.2 kB / 435.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2476, allocations: 0 / 435.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2476, allocations: 0 / 435.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.2476, allocations: 0 / 435.6 MB, free: 3.57 MB / 334.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.0009654/0.2485, allocations: 449.5 kB / 436.1 MB, free: 3.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.2486, allocations: 8.031 kB / 436.1 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.2488, allocations: 32.78 kB / 436.1 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003149/0.2491, allocations: 183.4 kB / 436.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.2491, allocations: 8.656 kB / 436.3 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.111e-05/0.2491, allocations: 20.38 kB / 436.3 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003826/0.2495, allocations: 208 kB / 436.5 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.948e-05/0.2495, allocations: 3.938 kB / 436.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.2496, allocations: 4 kB / 436.5 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.694e-05/0.2496, allocations: 8 kB / 436.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003141/0.2499, allocations: 139.8 kB / 436.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001113/0.251, allocations: 0.6879 MB / 437.4 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003398/0.2514, allocations: 161 kB / 437.5 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.2515, allocations: 73.86 kB / 437.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.086e-05/0.2516, allocations: 7.922 kB / 437.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.2518, allocations: 149.1 kB / 437.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 4.589e-06/0.2518, allocations: 4 kB / 437.8 MB, free: 1.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006135/0.2525, allocations: 250.2 kB / 438 MB, free: 1.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.053e-05/0.2525, allocations: 85.05 kB / 438.1 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002109/0.2527, allocations: 198.8 kB / 438.3 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.2528, allocations: 33.7 kB / 438.3 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.2529, allocations: 148.3 kB / 438.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.829e-05/0.253, allocations: 47.64 kB / 438.5 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.686e-05/0.253, allocations: 41.7 kB / 438.5 MB, free: 472 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2532, allocations: 326.8 kB / 438.9 MB, free: 136 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.2534, allocations: 75.94 kB / 438.9 MB, free: 60 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002058/0.2536, allocations: 118.8 kB / 439 MB, free: 15.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003478/0.2539, allocations: 206.7 kB / 439.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2539, allocations: 4 kB / 439.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004449/0.2544, allocations: 249.2 kB / 439.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.2544, allocations: 4 kB / 439.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.2544, allocations: 4 kB / 439.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.2544, allocations: 96 / 439.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.2546, allocations: 43.86 kB / 439.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.2546, allocations: 4.188 kB / 439.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.2548, allocations: 31.86 kB / 439.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.497e-05/0.2548, allocations: 8 kB / 439.6 MB, free: 15.34 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.0001517/0.2549, allocations: 145.7 kB / 439.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/0.255, allocations: 15.91 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004607/0.2554, allocations: 206.9 kB / 439.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.2554, allocations: 4 kB / 440 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2554, allocations: 0 / 440 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2554, allocations: 4 kB / 440 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002559/0.2557, allocations: 197.1 kB / 440.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2557, allocations: 3.938 kB / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.2558, allocations: 27.92 kB / 440.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.2558, allocations: 4 kB / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.2558, allocations: 0 / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.2558, allocations: 0 / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.2558, allocations: 4 kB / 440.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004187/0.2563, allocations: 228.2 kB / 440.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.459e-05/0.2563, allocations: 35.78 kB / 440.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.2563, allocations: 0 / 440.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.2565, allocations: 19.98 kB / 440.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.526e-05/0.2565, allocations: 15.91 kB / 440.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.2565, allocations: 11.98 kB / 440.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001321/0.2567, allocations: 136.6 kB / 440.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2567, allocations: 4 kB / 440.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002784/0.257, allocations: 39.89 kB / 440.7 MB, free: 14.2 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.0001499/0.2571, allocations: 103.2 kB / 440.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004123/0.2575, allocations: 167.8 kB / 440.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2575, allocations: 0 / 440.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.2577, allocations: 79.89 kB / 441 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.258, allocations: 44.67 kB / 441.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008214/0.2589, allocations: 411.4 kB / 441.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001363/0.259, allocations: 116.9 kB / 441.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.096e-05/0.2591, allocations: 27.42 kB / 441.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2591, allocations: 0 / 441.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of Templates: time 0.005864/0.2649, allocations: 2.49 MB / 444.1 MB, free: 10.72 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.5677672158926725]