Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001187/0.001187, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001025/0.001025, allocations: 170.8 kB / 25.33 MB, free: 9.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8866/0.8866, allocations: 158.6 MB / 187.2 MB, free: 2.488 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 251.1 MB, free: 3.453 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.88e-05/3.096e-05, allocations: 6.312 kB / 251.1 MB, free: 3.445 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003389/0.00342, allocations: 2.823 MB / 253.9 MB, free: 0.6016 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.004651, allocations: 0.7565 MB / 254.6 MB, free: 15.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.004812, allocations: 15.94 kB / 254.7 MB, free: 15.82 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000152/0.004964, allocations: 51.5 kB / 254.7 MB, free: 15.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.005115, allocations: 87.12 kB / 254.8 MB, free: 15.68 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003314/0.005447, allocations: 115.6 kB / 254.9 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003251/0.005772, allocations: 386 kB / 255.3 MB, free: 15.19 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.005941, allocations: 83.67 kB / 255.4 MB, free: 15.11 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.006146, allocations: 215.5 kB / 255.6 MB, free: 14.89 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.006301, allocations: 111.7 kB / 255.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/0.006342, allocations: 32 kB / 255.7 MB, free: 14.75 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.423e-05/0.006376, allocations: 28 kB / 255.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.102e-05/0.006427, allocations: 75.73 kB / 255.8 MB, free: 14.65 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.051e-05/0.006518, allocations: 111.7 kB / 255.9 MB, free: 14.54 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.006776, allocations: 247.1 kB / 256.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.006782, allocations: 11.94 kB / 256.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.006783, allocations: 0 / 256.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.00679, allocations: 0 / 256.2 MB, free: 14.29 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.0007239/0.007514, allocations: 0.63 MB / 256.8 MB, free: 13.62 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.007554, allocations: 11.98 kB / 256.8 MB, free: 13.61 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.104e-05/0.007645, allocations: 60.7 kB / 256.9 MB, free: 13.55 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.007904, allocations: 208 kB / 257.1 MB, free: 13.32 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.112e-05/0.007995, allocations: 128 kB / 257.2 MB, free: 13.17 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.963e-05/0.008034, allocations: 36.38 kB / 257.2 MB, free: 13.14 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.008369, allocations: 315 kB / 257.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.008379, allocations: 192 / 257.6 MB, free: 12.8 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.008402, allocations: 16.12 kB / 257.6 MB, free: 12.78 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.008414, allocations: 8 kB / 257.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/0.008584, allocations: 115.8 kB / 257.7 MB, free: 12.66 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.00966, allocations: 1.103 MB / 258.8 MB, free: 11.48 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002217/0.009881, allocations: 127.1 kB / 258.9 MB, free: 11.35 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.287e-05/0.009954, allocations: 55.66 kB / 259 MB, free: 11.29 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.773e-05/0.009972, allocations: 8 kB / 259 MB, free: 11.28 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000485/0.01046, allocations: 199.4 kB / 259.2 MB, free: 11.05 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.724e-06/0.01046, allocations: 0 / 259.2 MB, free: 11.05 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.000588/0.01105, allocations: 253.2 kB / 259.4 MB, free: 10.79 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.0111, allocations: 114.8 kB / 259.5 MB, free: 10.65 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.01123, allocations: 246.7 kB / 259.8 MB, free: 10.39 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.01125, allocations: 33.7 kB / 259.8 MB, free: 10.36 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.075e-05/0.01134, allocations: 235.1 kB / 260 MB, free: 10.12 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.01138, allocations: 71.39 kB / 260.1 MB, free: 10.05 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.348e-05/0.01145, allocations: 63.34 kB / 260.2 MB, free: 9.98 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.01156, allocations: 0.4962 MB / 260.7 MB, free: 9.473 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.07e-05/0.01163, allocations: 43.97 kB / 260.7 MB, free: 9.43 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.01175, allocations: 196.2 kB / 260.9 MB, free: 9.184 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001608/0.01191, allocations: 186.7 kB / 261.1 MB, free: 8.969 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01192, allocations: 0 / 261.1 MB, free: 8.969 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002661/0.01218, allocations: 238.5 kB / 261.3 MB, free: 8.727 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.0122, allocations: 10.97 kB / 261.3 MB, free: 8.719 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.01221, allocations: 0 / 261.3 MB, free: 8.719 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.0124, allocations: 47.86 kB / 261.4 MB, free: 8.668 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.01253, allocations: 55.92 kB / 261.4 MB, free: 8.613 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009673/0.0135, allocations: 1.977 MB / 263.4 MB, free: 6.52 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.01363, allocations: 35.83 kB / 263.4 MB, free: 6.484 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.01365, allocations: 12 kB / 263.4 MB, free: 6.473 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 0.0001072/0.01375, allocations: 168.5 kB / 263.6 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.01378, allocations: 31.89 kB / 263.6 MB, free: 6.266 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.907e-05/0.01381, allocations: 21.97 kB / 263.7 MB, free: 6.238 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.01382, allocations: 7.938 kB / 263.7 MB, free: 6.23 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.01382, allocations: 8 kB / 263.7 MB, free: 6.223 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.01382, allocations: 3.984 kB / 263.7 MB, free: 6.219 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001695/0.01399, allocations: 220.4 kB / 263.9 MB, free: 5.969 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.01399, allocations: 0 / 263.9 MB, free: 5.969 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.476e-05/0.01409, allocations: 35.98 kB / 263.9 MB, free: 5.934 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001032/0.01419, allocations: 43.62 kB / 264 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.01421, allocations: 8 kB / 264 MB, free: 5.879 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007255/0.01493, allocations: 1.752 MB / 265.7 MB, free: 4.008 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01493, allocations: 0 / 265.7 MB, free: 4.008 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003128/0.01525, allocations: 271.7 kB / 266 MB, free: 3.715 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.489e-05/0.0153, allocations: 43.92 kB / 266 MB, free: 3.672 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.01532, allocations: 8 kB / 266.1 MB, free: 3.664 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.099e-05/0.01538, allocations: 8 kB / 266.1 MB, free: 3.656 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.01545, allocations: 31.94 kB / 266.1 MB, free: 3.625 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.01546, allocations: 7.984 kB / 266.1 MB, free: 3.617 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003396/0.0158, allocations: 177.4 kB / 266.3 MB, free: 3.445 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0158, allocations: 0 / 266.3 MB, free: 3.445 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002567/0.01606, allocations: 79.84 kB / 266.4 MB, free: 3.367 MB / 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 0.0001074/0.01617, allocations: 111.1 kB / 266.5 MB, free: 3.25 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003795/0.01655, allocations: 316.4 kB / 266.8 MB, free: 2.922 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.01655, allocations: 0 / 266.8 MB, free: 2.922 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001678/0.01672, allocations: 238.4 kB / 267 MB, free: 2.668 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.01692, allocations: 40 kB / 267 MB, free: 2.633 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.01802, allocations: 0.5806 MB / 267.6 MB, free: 2.023 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.793e-05/0.01807, allocations: 88.31 kB / 267.7 MB, free: 1.918 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.621e-05/0.01813, allocations: 25.92 kB / 267.7 MB, free: 1.887 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.156e-05/0.01817, allocations: 16.5 kB / 267.7 MB, free: 1.871 MB / 250.7 MB Notification: Performance of SimCode: time 1.052e-06/0.01818, allocations: 4 kB / 267.8 MB, free: 1.867 MB / 250.7 MB Notification: Performance of Templates: time 0.005196/0.02337, allocations: 3.056 MB / 270.8 MB, free: 14.84 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7079327888786793]