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.001334/0.001334, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00199/0.003324, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.001331/0.001331, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001685/0.003016, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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 1.152/1.152, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2261/1.378, allocations: 49.49 MB / 220.7 MB, free: 1.359 MB / 218.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.354e-06/2.354e-06, allocations: 0 / 222 MB, free: 56 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.867e-05/4.103e-05, allocations: 2.312 kB / 222 MB, free: 52 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004729/0.00477, allocations: 2.86 MB / 224.9 MB, free: 13.17 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00168/0.00645, allocations: 0.7873 MB / 225.6 MB, free: 12.37 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.006639, allocations: 4 kB / 225.6 MB, free: 12.37 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.006787, allocations: 55.44 kB / 225.7 MB, free: 12.31 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002175/0.007004, allocations: 95.12 kB / 225.8 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003541/0.007358, allocations: 111.7 kB / 225.9 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002176/0.009535, allocations: 382.2 kB / 226.3 MB, free: 11.73 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003153/0.00985, allocations: 74.31 kB / 226.3 MB, free: 11.66 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000416/0.01027, allocations: 243.3 kB / 226.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.01043, allocations: 123.6 kB / 226.7 MB, free: 11.3 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.102e-05/0.01047, allocations: 28 kB / 226.7 MB, free: 11.27 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.599e-05/0.01051, allocations: 32 kB / 226.8 MB, free: 11.24 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.627e-05/0.01056, allocations: 55.81 kB / 226.8 MB, free: 11.19 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.748e-05/0.01063, allocations: 95.81 kB / 226.9 MB, free: 11.09 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002555/0.01089, allocations: 223.2 kB / 227.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.062e-05/0.0109, allocations: 0 / 227.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.0109, allocations: 0 / 227.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.01091, allocations: 0 / 227.1 MB, free: 10.88 MB / 234.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.0006838/0.01159, allocations: 0.5752 MB / 227.7 MB, free: 10.28 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.01162, allocations: 8.031 kB / 227.7 MB, free: 10.27 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.581e-05/0.01169, allocations: 56.89 kB / 227.8 MB, free: 10.21 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.01189, allocations: 173.2 kB / 227.9 MB, free: 10.02 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.923e-05/0.01197, allocations: 128 kB / 228.1 MB, free: 9.871 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.824e-05/0.01201, allocations: 32.38 kB / 228.1 MB, free: 9.84 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002611/0.01227, allocations: 290.5 kB / 228.4 MB, free: 9.523 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.01228, allocations: 4.125 kB / 228.4 MB, free: 9.52 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.0123, allocations: 20.12 kB / 228.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.01231, allocations: 12 kB / 228.4 MB, free: 9.488 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.01241, allocations: 76.55 kB / 228.5 MB, free: 9.418 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008626/0.01327, allocations: 0.8293 MB / 229.3 MB, free: 8.543 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/0.01342, allocations: 102.5 kB / 229.4 MB, free: 8.434 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.413e-05/0.01346, allocations: 44.81 kB / 229.5 MB, free: 8.387 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.01348, allocations: 4 kB / 229.5 MB, free: 8.383 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001721/0.01365, allocations: 181.2 kB / 229.6 MB, free: 8.172 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.01366, allocations: 0 / 229.6 MB, free: 8.172 MB / 234.7 MB Notification: Performance of matching and sorting (n=21): time 0.000397/0.01405, allocations: 194.3 kB / 229.8 MB, free: 7.973 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.01408, allocations: 59.34 kB / 229.9 MB, free: 7.902 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.01419, allocations: 191.7 kB / 230.1 MB, free: 7.703 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.01422, allocations: 29.7 kB / 230.1 MB, free: 7.668 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.322e-05/0.01429, allocations: 184.3 kB / 230.3 MB, free: 7.484 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.504e-05/0.01433, allocations: 75.39 kB / 230.4 MB, free: 7.41 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.01439, allocations: 61.64 kB / 230.4 MB, free: 7.344 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.392e-05/0.01447, allocations: 338.8 kB / 230.8 MB, free: 7.004 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.569e-05/0.0145, allocations: 27.98 kB / 230.8 MB, free: 6.977 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.01462, allocations: 159.9 kB / 230.9 MB, free: 6.777 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.0148, allocations: 140.1 kB / 231.1 MB, free: 6.617 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.0148, allocations: 0 / 231.1 MB, free: 6.617 MB / 234.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002377/0.01504, allocations: 175.9 kB / 231.2 MB, free: 6.438 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.01505, allocations: 4 kB / 231.2 MB, free: 6.434 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.01506, allocations: 7.938 kB / 231.3 MB, free: 6.426 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001855/0.01525, allocations: 45.03 kB / 231.3 MB, free: 6.379 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.01542, allocations: 71.91 kB / 231.4 MB, free: 6.309 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009568/0.01638, allocations: 1.308 MB / 232.7 MB, free: 4.914 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.01649, allocations: 39.89 kB / 232.7 MB, free: 4.875 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.01651, allocations: 12 kB / 232.7 MB, free: 4.863 MB / 234.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.0001097/0.01662, allocations: 125.8 kB / 232.9 MB, free: 4.73 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.01665, allocations: 23.97 kB / 232.9 MB, free: 4.707 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.01668, allocations: 25.95 kB / 232.9 MB, free: 4.68 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.01668, allocations: 4 kB / 232.9 MB, free: 4.676 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.01668, allocations: 0 / 232.9 MB, free: 4.676 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.01669, allocations: 3.984 kB / 232.9 MB, free: 4.672 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.01683, allocations: 149.7 kB / 233.1 MB, free: 4.508 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.01683, allocations: 0 / 233.1 MB, free: 4.508 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.01696, allocations: 55.91 kB / 233.1 MB, free: 4.453 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.346e-05/0.017, allocations: 23.84 kB / 233.1 MB, free: 4.43 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.376e-05/0.0171, allocations: 32.83 kB / 233.2 MB, free: 4.395 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.01712, allocations: 8 kB / 233.2 MB, free: 4.387 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007159/0.01783, allocations: 1.17 MB / 234.3 MB, free: 3.133 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.01783, allocations: 0 / 234.3 MB, free: 3.133 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003179/0.01815, allocations: 205.7 kB / 234.5 MB, free: 2.91 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.043e-05/0.01817, allocations: 4 kB / 234.5 MB, free: 2.906 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.884e-05/0.01825, allocations: 20.14 kB / 234.6 MB, free: 2.887 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.01831, allocations: 31.88 kB / 234.6 MB, free: 2.855 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.01833, allocations: 8 kB / 234.6 MB, free: 2.848 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.345e-05/0.01837, allocations: 47.11 kB / 234.7 MB, free: 2.801 MB / 234.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01837, allocations: 3.938 kB / 234.7 MB, free: 2.797 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001935/0.01857, allocations: 87.78 kB / 234.7 MB, free: 2.711 MB / 234.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.0001133/0.01868, allocations: 88.39 kB / 234.8 MB, free: 2.613 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.000342/0.01902, allocations: 230.8 kB / 235.1 MB, free: 2.375 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/0.01903, allocations: 7.984 kB / 235.1 MB, free: 2.367 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.01921, allocations: 192.1 kB / 235.2 MB, free: 2.164 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.01952, allocations: 376.3 kB / 235.6 MB, free: 1.723 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.02179, allocations: 0.6035 MB / 236.2 MB, free: 1.09 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.096e-05/0.02184, allocations: 92.31 kB / 236.3 MB, free: 0.9805 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 6.666e-05/0.0219, allocations: 21.94 kB / 236.3 MB, free: 0.9609 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.02201, allocations: 95.34 kB / 236.4 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02201, allocations: 3.938 kB / 236.4 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of Templates: time 0.005075/0.02708, allocations: 3.249 MB / 239.7 MB, free: 13.64 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0321754179894924]