Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008008/0.0008008, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001089/0.001889, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007169/0.0007169, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009344/0.001651, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9438/0.9438, allocations: 177.4 MB / 189.9 MB, free: 4.82 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08607/1.03, allocations: 53.86 MB / 243.8 MB, free: 14.9 MB / 250.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.491e-05/1.598e-05, allocations: 6.25 kB / 245 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002656/0.002672, allocations: 2.932 MB / 248 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.003735, allocations: 0.7746 MB / 248.7 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.003841, allocations: 12 kB / 248.8 MB, free: 9.875 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.675e-05/0.003928, allocations: 51.44 kB / 248.8 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001289/0.004057, allocations: 91.12 kB / 248.9 MB, free: 9.734 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.004284, allocations: 103.7 kB / 249 MB, free: 9.633 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003155/0.004599, allocations: 394 kB / 249.4 MB, free: 9.246 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.004731, allocations: 86.23 kB / 249.5 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/0.004935, allocations: 235.5 kB / 249.7 MB, free: 8.93 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.005068, allocations: 115.7 kB / 249.8 MB, free: 8.816 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.621e-05/0.005104, allocations: 32 kB / 249.8 MB, free: 8.785 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.047e-05/0.005135, allocations: 28 kB / 249.9 MB, free: 8.758 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.986e-05/0.005174, allocations: 51.81 kB / 249.9 MB, free: 8.707 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.14e-05/0.005256, allocations: 91.88 kB / 250 MB, free: 8.617 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.005537, allocations: 243 kB / 250.2 MB, free: 8.379 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-05/0.005554, allocations: 0 / 250.2 MB, free: 8.379 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.005555, allocations: 0 / 250.2 MB, free: 8.379 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.00557, allocations: 0 / 250.2 MB, free: 8.379 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009729/0.006543, allocations: 0.5713 MB / 250.8 MB, free: 7.785 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.853e-05/0.006572, allocations: 8.625 kB / 250.8 MB, free: 7.777 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.746e-05/0.006639, allocations: 52.89 kB / 250.9 MB, free: 7.727 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002109/0.00685, allocations: 177.2 kB / 251 MB, free: 7.527 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.072e-05/0.006931, allocations: 128 kB / 251.2 MB, free: 7.379 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.546e-05/0.006966, allocations: 32.38 kB / 251.2 MB, free: 7.348 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002804/0.007247, allocations: 298.5 kB / 251.5 MB, free: 7.023 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.007256, allocations: 192 / 251.5 MB, free: 7.023 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.007283, allocations: 16.12 kB / 251.5 MB, free: 7.008 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.007292, allocations: 4 kB / 251.5 MB, free: 7.004 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.007417, allocations: 80.48 kB / 251.6 MB, free: 6.926 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009441/0.008361, allocations: 0.8255 MB / 252.4 MB, free: 6.055 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.008523, allocations: 105.6 kB / 252.5 MB, free: 5.945 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.038e-05/0.008574, allocations: 36.84 kB / 252.6 MB, free: 5.906 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.008587, allocations: 8 kB / 252.6 MB, free: 5.898 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001709/0.008758, allocations: 177.2 kB / 252.7 MB, free: 5.691 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 2.615e-06/0.008761, allocations: 3.984 kB / 252.7 MB, free: 5.688 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004355/0.009196, allocations: 189.7 kB / 252.9 MB, free: 5.496 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.009228, allocations: 59.34 kB / 253 MB, free: 5.426 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.009352, allocations: 195.8 kB / 253.2 MB, free: 5.223 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.009371, allocations: 29.7 kB / 253.2 MB, free: 5.188 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.908e-05/0.00945, allocations: 184.4 kB / 253.4 MB, free: 5 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.002e-05/0.0095, allocations: 75.39 kB / 253.5 MB, free: 4.926 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.307e-05/0.009573, allocations: 69.56 kB / 253.5 MB, free: 4.852 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.059e-05/0.009653, allocations: 330.8 kB / 253.8 MB, free: 4.52 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.503e-05/0.009698, allocations: 31.92 kB / 253.9 MB, free: 4.488 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.009802, allocations: 156.9 kB / 254 MB, free: 4.289 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.009934, allocations: 140.1 kB / 254.2 MB, free: 4.129 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.009938, allocations: 4 kB / 254.2 MB, free: 4.125 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002137/0.01015, allocations: 172.6 kB / 254.3 MB, free: 3.949 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.01017, allocations: 11.98 kB / 254.4 MB, free: 3.938 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.01017, allocations: 0 / 254.4 MB, free: 3.938 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000146/0.01032, allocations: 41.05 kB / 254.4 MB, free: 3.895 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001849/0.0105, allocations: 67.84 kB / 254.5 MB, free: 3.828 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007787/0.01128, allocations: 1.309 MB / 255.8 MB, free: 2.434 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.01141, allocations: 39.83 kB / 255.8 MB, free: 2.395 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.01142, allocations: 4 kB / 255.8 MB, free: 2.391 MB / 250.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: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 9.277e-05/0.01151, allocations: 141.6 kB / 256 MB, free: 2.242 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/0.01154, allocations: 19.98 kB / 256 MB, free: 2.223 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.227e-05/0.01157, allocations: 29.95 kB / 256 MB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.01157, allocations: 4.062 kB / 256 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.01158, allocations: 0 / 256 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.01158, allocations: 0 / 256 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.01174, allocations: 153.7 kB / 256.2 MB, free: 2.023 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.01174, allocations: 0 / 256.2 MB, free: 2.023 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001435/0.01189, allocations: 51.14 kB / 256.2 MB, free: 1.977 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/0.01193, allocations: 19.84 kB / 256.2 MB, free: 1.957 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001044/0.01204, allocations: 36.83 kB / 256.3 MB, free: 1.918 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.01205, allocations: 7.984 kB / 256.3 MB, free: 1.91 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000878/0.01293, allocations: 1.17 MB / 257.4 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.01293, allocations: 3.938 kB / 257.4 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002629/0.01319, allocations: 201.9 kB / 257.6 MB, free: 440 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.01322, allocations: 4 kB / 257.6 MB, free: 436 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.702e-05/0.01329, allocations: 15.98 kB / 257.7 MB, free: 420 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.957e-05/0.01335, allocations: 31.88 kB / 257.7 MB, free: 388 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.01336, allocations: 8 kB / 257.7 MB, free: 380 kB / 250.7 MB Notification: Performance of sorting global known variables: time 4.894e-05/0.01341, allocations: 62.95 kB / 257.8 MB, free: 316 kB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01341, allocations: 0 / 257.8 MB, free: 316 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002639/0.01368, allocations: 83.84 kB / 257.8 MB, free: 232 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 9.628e-05/0.01377, allocations: 88.39 kB / 257.9 MB, free: 132 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000294/0.01407, allocations: 235.5 kB / 258.2 MB, free: 15.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/0.01408, allocations: 4 kB / 258.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001405/0.01422, allocations: 170.4 kB / 258.3 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001714/0.01439, allocations: 64.14 kB / 258.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/0.01727, allocations: 0.6032 MB / 259 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.876e-05/0.01733, allocations: 88.56 kB / 259.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.166e-05/0.01742, allocations: 21.94 kB / 259.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.01753, allocations: 99.33 kB / 259.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.01754, allocations: 0 / 259.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of Templates: time 0.006087/0.02362, allocations: 3.322 MB / 262.5 MB, free: 11.5 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.509039775468409]