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.0007616/0.0007616, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001036/0.001798, allocations: 457.8 kB / 10.45 MB, free: 244 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.0006875/0.0006875, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000969/0.001657, allocations: 475.6 kB / 11.82 MB, free: 2.348 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 1.001/1.001, allocations: 177.5 MB / 190 MB, free: 4.797 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08592/1.087, allocations: 53.86 MB / 243.9 MB, free: 14.86 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 2.144e-06/2.144e-06, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.119e-05/2.333e-05, allocations: 5.406 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002984/0.003007, allocations: 2.936 MB / 248.2 MB, free: 10.59 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.004207, allocations: 0.7824 MB / 248.9 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.004339, allocations: 4 kB / 248.9 MB, free: 9.801 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.004449, allocations: 51.44 kB / 249 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.004595, allocations: 99.12 kB / 249.1 MB, free: 9.652 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002523/0.004847, allocations: 115.6 kB / 249.2 MB, free: 9.539 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003102/0.005157, allocations: 382.1 kB / 249.6 MB, free: 9.164 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000147/0.005304, allocations: 86.23 kB / 249.7 MB, free: 9.078 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002469/0.005551, allocations: 231.5 kB / 249.9 MB, free: 8.852 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.005704, allocations: 115.7 kB / 250 MB, free: 8.738 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.76e-05/0.005742, allocations: 28 kB / 250 MB, free: 8.711 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.464e-05/0.005776, allocations: 32 kB / 250.1 MB, free: 8.68 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.201e-05/0.005818, allocations: 51.81 kB / 250.1 MB, free: 8.629 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.408e-05/0.005892, allocations: 99.81 kB / 250.2 MB, free: 8.531 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002248/0.006117, allocations: 227.1 kB / 250.4 MB, free: 8.309 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.133e-05/0.006129, allocations: 0 / 250.4 MB, free: 8.309 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.00613, allocations: 0 / 250.4 MB, free: 8.309 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.006141, allocations: 0 / 250.4 MB, free: 8.309 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.0006831/0.006824, allocations: 0.5791 MB / 251 MB, free: 7.707 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.006857, allocations: 8.625 kB / 251 MB, free: 7.699 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.868e-05/0.006925, allocations: 52.89 kB / 251.1 MB, free: 7.648 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002177/0.007143, allocations: 173.2 kB / 251.2 MB, free: 7.453 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.866e-05/0.007222, allocations: 132 kB / 251.4 MB, free: 7.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.007258, allocations: 32.36 kB / 251.4 MB, free: 7.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.007531, allocations: 290.5 kB / 251.7 MB, free: 6.953 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.007539, allocations: 192 / 251.7 MB, free: 6.953 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.007558, allocations: 16.12 kB / 251.7 MB, free: 6.938 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.007567, allocations: 8 kB / 251.7 MB, free: 6.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.483e-05/0.007662, allocations: 80.48 kB / 251.8 MB, free: 6.852 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008668/0.008529, allocations: 0.8294 MB / 252.6 MB, free: 5.973 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001394/0.008668, allocations: 94.53 kB / 252.7 MB, free: 5.871 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.319e-05/0.008711, allocations: 48.83 kB / 252.8 MB, free: 5.82 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.6e-05/0.008727, allocations: 4 kB / 252.8 MB, free: 5.816 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.008878, allocations: 185.2 kB / 252.9 MB, free: 5.602 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 9.91e-07/0.008879, allocations: 3.938 kB / 252.9 MB, free: 5.598 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003887/0.009268, allocations: 189.7 kB / 253.1 MB, free: 5.406 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.009304, allocations: 55.34 kB / 253.2 MB, free: 5.34 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.951e-05/0.009404, allocations: 195.8 kB / 253.4 MB, free: 5.137 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.009422, allocations: 33.7 kB / 253.4 MB, free: 5.098 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.78e-05/0.00949, allocations: 176.4 kB / 253.6 MB, free: 4.918 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.009528, allocations: 71.41 kB / 253.7 MB, free: 4.848 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/0.009584, allocations: 57.64 kB / 253.7 MB, free: 4.785 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.28e-05/0.009657, allocations: 338.8 kB / 254 MB, free: 4.445 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.364e-05/0.00969, allocations: 31.92 kB / 254.1 MB, free: 4.414 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.009917, allocations: 152.9 kB / 254.2 MB, free: 4.219 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.01003, allocations: 144 kB / 254.4 MB, free: 4.055 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.01003, allocations: 4 kB / 254.4 MB, free: 4.051 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001745/0.01021, allocations: 180.6 kB / 254.5 MB, free: 3.867 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.01022, allocations: 4 kB / 254.5 MB, free: 3.863 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.01023, allocations: 7.938 kB / 254.6 MB, free: 3.855 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001425/0.01037, allocations: 37.03 kB / 254.6 MB, free: 3.816 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.01052, allocations: 71.91 kB / 254.7 MB, free: 3.746 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006718/0.01119, allocations: 1.312 MB / 256 MB, free: 2.348 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.0113, allocations: 39.89 kB / 256 MB, free: 2.309 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.01131, allocations: 8 kB / 256 MB, free: 2.301 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 7.741e-05/0.01139, allocations: 129.7 kB / 256.1 MB, free: 2.164 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/0.01141, allocations: 23.97 kB / 256.2 MB, free: 2.141 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.01143, allocations: 21.97 kB / 256.2 MB, free: 2.121 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.01144, allocations: 4 kB / 256.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.01144, allocations: 0 / 256.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.01144, allocations: 3.984 kB / 256.2 MB, free: 2.113 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.01157, allocations: 149.7 kB / 256.3 MB, free: 1.949 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.01158, allocations: 0 / 256.3 MB, free: 1.949 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.01169, allocations: 47.91 kB / 256.4 MB, free: 1.902 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.146e-05/0.01173, allocations: 31.78 kB / 256.4 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-05/0.01181, allocations: 32.83 kB / 256.5 MB, free: 1.836 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.01182, allocations: 4 kB / 256.5 MB, free: 1.832 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005563/0.01237, allocations: 1.178 MB / 257.6 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.01237, allocations: 3.984 kB / 257.6 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004539/0.01283, allocations: 197.8 kB / 257.8 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.887e-05/0.01285, allocations: 7.938 kB / 257.8 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.05e-05/0.01291, allocations: 20.14 kB / 257.9 MB, free: 328 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.01297, allocations: 39.81 kB / 257.9 MB, free: 288 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.515e-06/0.01297, allocations: 4 kB / 257.9 MB, free: 284 kB / 250.7 MB Notification: Performance of sorting global known variables: time 3.83e-05/0.01301, allocations: 55.05 kB / 258 MB, free: 228 kB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01301, allocations: 0 / 258 MB, free: 228 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002027/0.01322, allocations: 79.84 kB / 258 MB, free: 148 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.084e-05/0.01331, allocations: 88.28 kB / 258.1 MB, free: 52 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002617/0.01357, allocations: 243.9 kB / 258.4 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/0.01358, allocations: 4 kB / 258.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.01371, allocations: 186.2 kB / 258.5 MB, free: 15.6 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002602/0.01397, allocations: 388 kB / 258.9 MB, free: 15.15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.01617, allocations: 0.5997 MB / 259.5 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.762e-05/0.01622, allocations: 96.25 kB / 259.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.74e-05/0.01628, allocations: 17.94 kB / 259.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.01638, allocations: 87.36 kB / 259.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01638, allocations: 0 / 259.7 MB, free: 14.3 MB / 266.7 MB Notification: Performance of Templates: time 0.005183/0.02157, allocations: 3.257 MB / 263 MB, free: 11.09 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5453919703140855]