Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.0008979/0.0008979, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 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.0009768/0.0009768, allocations: 169.1 kB / 24.91 MB, free: 9.191 MB / 18.57 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 0.9996/0.9996, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] 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.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.456e-05/1.583e-05, allocations: 2.312 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00269/0.002706, allocations: 2.916 MB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.003773, allocations: 0.7746 MB / 277.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.003888, allocations: 4 kB / 277.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.004014, allocations: 59.44 kB / 277.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.004152, allocations: 91.12 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.004405, allocations: 103.7 kB / 277.5 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002699/0.004675, allocations: 386.1 kB / 277.8 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.004811, allocations: 86.3 kB / 277.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.004981, allocations: 215.5 kB / 278.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001406/0.005121, allocations: 111.7 kB / 278.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.616e-05/0.005158, allocations: 32 kB / 278.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.947e-05/0.005187, allocations: 28 kB / 278.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.321e-05/0.00523, allocations: 75.73 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.724e-05/0.005308, allocations: 119.7 kB / 278.5 MB, free: 12.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.00552, allocations: 251 kB / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.005521, allocations: 0 / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.005522, allocations: 4 kB / 278.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.486e-06/0.005526, allocations: 0 / 278.7 MB, free: 11.99 MB / 266.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.0005312/0.006057, allocations: 0.5052 MB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.006086, allocations: 12.03 kB / 279.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.917e-05/0.006145, allocations: 56.83 kB / 279.3 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.00633, allocations: 173.4 kB / 279.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.147e-05/0.006401, allocations: 132 kB / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.231e-05/0.006433, allocations: 28.38 kB / 279.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.006672, allocations: 298.5 kB / 279.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.00668, allocations: 192 / 279.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.006698, allocations: 16.12 kB / 279.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.006705, allocations: 4 kB / 279.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/0.006805, allocations: 88.47 kB / 280 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008126/0.007618, allocations: 0.8217 MB / 280.8 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.007756, allocations: 98.53 kB / 280.9 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.121e-05/0.007797, allocations: 40.78 kB / 281 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.395e-05/0.007811, allocations: 7.984 kB / 281 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001418/0.007953, allocations: 180.3 kB / 281.2 MB, free: 9.363 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.182e-06/0.007954, allocations: 0 / 281.2 MB, free: 9.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003688/0.008323, allocations: 194.3 kB / 281.4 MB, free: 9.164 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.008367, allocations: 114.7 kB / 281.5 MB, free: 9.027 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.008468, allocations: 195.7 kB / 281.7 MB, free: 8.824 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.008483, allocations: 25.7 kB / 281.7 MB, free: 8.793 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.936e-05/0.008552, allocations: 172.5 kB / 281.9 MB, free: 8.621 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.008591, allocations: 79.36 kB / 281.9 MB, free: 8.543 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.008648, allocations: 61.53 kB / 282 MB, free: 8.477 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.534e-05/0.008723, allocations: 334.8 kB / 282.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.697e-05/0.00876, allocations: 31.98 kB / 282.3 MB, free: 8.109 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.141e-05/0.008842, allocations: 148.8 kB / 282.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.008952, allocations: 136.1 kB / 282.6 MB, free: 7.762 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.008955, allocations: 0 / 282.6 MB, free: 7.762 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001702/0.009125, allocations: 180.6 kB / 282.8 MB, free: 7.578 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.009135, allocations: 4 kB / 282.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.009141, allocations: 4 kB / 282.8 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001337/0.009274, allocations: 40.77 kB / 282.9 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.009423, allocations: 72.06 kB / 282.9 MB, free: 7.457 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007319/0.01016, allocations: 1.309 MB / 284.2 MB, free: 6.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.01026, allocations: 43.72 kB / 284.3 MB, free: 6.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.01027, allocations: 4.125 kB / 284.3 MB, free: 6.012 MB / 266.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.001e-05/0.01036, allocations: 137.7 kB / 284.4 MB, free: 5.867 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.01039, allocations: 19.98 kB / 284.4 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.581e-05/0.01041, allocations: 33.95 kB / 284.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.01042, allocations: 0 / 284.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.01042, allocations: 0 / 284.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.01042, allocations: 0 / 284.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001528/0.01058, allocations: 153.7 kB / 284.6 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.01058, allocations: 0 / 284.6 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.0107, allocations: 51.48 kB / 284.7 MB, free: 5.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-05/0.01078, allocations: 32.83 kB / 284.7 MB, free: 5.562 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.01079, allocations: 8 kB / 284.7 MB, free: 5.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005665/0.01136, allocations: 1.17 MB / 285.9 MB, free: 4.301 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01136, allocations: 0 / 285.9 MB, free: 4.301 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002464/0.01161, allocations: 213.5 kB / 286.1 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.523e-05/0.01165, allocations: 27.78 kB / 286.1 MB, free: 4.047 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.01167, allocations: 4 kB / 286.1 MB, free: 4.043 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.123e-05/0.01173, allocations: 15.98 kB / 286.1 MB, free: 4.027 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.01179, allocations: 36.03 kB / 286.2 MB, free: 3.992 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.0118, allocations: 4 kB / 286.2 MB, free: 3.988 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.231e-05/0.01184, allocations: 58.97 kB / 286.2 MB, free: 3.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01184, allocations: 0 / 286.2 MB, free: 3.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002051/0.01205, allocations: 83.83 kB / 286.3 MB, free: 3.848 MB / 266.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 8.919e-05/0.01214, allocations: 88.36 kB / 286.4 MB, free: 3.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002631/0.0124, allocations: 231.3 kB / 286.6 MB, free: 3.512 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.01241, allocations: 8.125 kB / 286.6 MB, free: 3.504 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.01254, allocations: 167.4 kB / 286.8 MB, free: 3.324 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001367/0.01267, allocations: 39.7 kB / 286.8 MB, free: 3.285 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009298/0.0136, allocations: 0.5708 MB / 287.4 MB, free: 2.688 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.93e-05/0.01365, allocations: 84.31 kB / 287.5 MB, free: 2.586 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.368e-05/0.01372, allocations: 21.95 kB / 287.5 MB, free: 2.566 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.01382, allocations: 91.34 kB / 287.6 MB, free: 2.477 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.01382, allocations: 0 / 287.6 MB, free: 2.477 MB / 266.7 MB Notification: Performance of Templates: time 0.005408/0.01923, allocations: 3.163 MB / 290.8 MB, free: 15.38 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.6524457852356136]