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.002005/0.002005, allocations: 92.33 kB / 21.73 MB, free: 2.68 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.002414/0.002414, allocations: 167.1 kB / 25.02 MB, free: 9.438 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 1.381/1.381, allocations: 158.6 MB / 186.8 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] 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 4.038e-06/4.038e-06, allocations: 3.984 kB / 250.4 MB, free: 3.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.61e-05/3.014e-05, allocations: 6.312 kB / 250.4 MB, free: 3.926 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004243/0.004273, allocations: 2.633 MB / 253 MB, free: 1.277 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.005769, allocations: 0.7408 MB / 253.7 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.005893, allocations: 8 kB / 253.8 MB, free: 0.5195 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.006072, allocations: 59.44 kB / 253.8 MB, free: 472 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002123/0.006284, allocations: 87.12 kB / 253.9 MB, free: 384 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.006675, allocations: 103.7 kB / 254 MB, free: 280 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004834/0.007159, allocations: 393.9 kB / 254.4 MB, free: 15.89 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002002/0.007359, allocations: 75.69 kB / 254.5 MB, free: 15.81 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.007653, allocations: 215.6 kB / 254.7 MB, free: 15.6 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.00786, allocations: 115.7 kB / 254.8 MB, free: 15.48 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.609e-05/0.007916, allocations: 28 kB / 254.8 MB, free: 15.46 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.621e-05/0.007972, allocations: 32 kB / 254.8 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.003e-05/0.008052, allocations: 63.75 kB / 254.9 MB, free: 15.36 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.008206, allocations: 123.7 kB / 255 MB, free: 15.24 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004704/0.008676, allocations: 370.8 kB / 255.4 MB, free: 14.88 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.595e-06/0.008684, allocations: 4 kB / 255.4 MB, free: 14.88 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.008685, allocations: 0 / 255.4 MB, free: 14.88 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.008691, allocations: 4 kB / 255.4 MB, free: 14.87 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.001066/0.009758, allocations: 0.53 MB / 255.9 MB, free: 14.31 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.009801, allocations: 15.98 kB / 255.9 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.009933, allocations: 64.69 kB / 256 MB, free: 14.23 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.01035, allocations: 205.9 kB / 256.2 MB, free: 14 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.01049, allocations: 136 kB / 256.3 MB, free: 13.85 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.835e-05/0.01055, allocations: 28.38 kB / 256.4 MB, free: 13.82 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005993/0.01115, allocations: 345.9 kB / 256.7 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.01116, allocations: 192 / 256.7 MB, free: 13.46 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.957e-05/0.0112, allocations: 16.12 kB / 256.7 MB, free: 13.44 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.01121, allocations: 8 kB / 256.7 MB, free: 13.43 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003865/0.0116, allocations: 198.5 kB / 256.9 MB, free: 13.24 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.01345, allocations: 0.9775 MB / 257.9 MB, free: 12.2 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003266/0.01378, allocations: 146.5 kB / 258 MB, free: 12.04 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.01393, allocations: 76.83 kB / 258.1 MB, free: 11.96 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.01395, allocations: 8 kB / 258.1 MB, free: 11.96 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003191/0.01427, allocations: 201.2 kB / 258.3 MB, free: 11.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.01427, allocations: 0 / 258.3 MB, free: 11.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001087/0.01535, allocations: 318.4 kB / 258.6 MB, free: 11.41 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.01546, allocations: 110.8 kB / 258.7 MB, free: 11.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/0.0157, allocations: 207.8 kB / 258.9 MB, free: 11.06 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.01573, allocations: 33.7 kB / 259 MB, free: 11.02 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.01589, allocations: 180.5 kB / 259.1 MB, free: 10.84 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.542e-05/0.01598, allocations: 71.42 kB / 259.2 MB, free: 10.77 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.01608, allocations: 61.59 kB / 259.3 MB, free: 10.71 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.01628, allocations: 330.8 kB / 259.6 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.01644, allocations: 63.98 kB / 259.7 MB, free: 10.31 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/0.01669, allocations: 195.9 kB / 259.9 MB, free: 10.08 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003084/0.017, allocations: 192.2 kB / 260 MB, free: 9.867 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.017, allocations: 0 / 260 MB, free: 9.867 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005123/0.01751, allocations: 291.7 kB / 260.3 MB, free: 9.574 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.01753, allocations: 7.188 kB / 260.3 MB, free: 9.57 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.01754, allocations: 8 kB / 260.3 MB, free: 9.562 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002813/0.01782, allocations: 52.81 kB / 260.4 MB, free: 9.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000216/0.01804, allocations: 47.92 kB / 260.4 MB, free: 9.461 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.01974, allocations: 1.457 MB / 261.9 MB, free: 7.906 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003306/0.02007, allocations: 35.77 kB / 261.9 MB, free: 7.871 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.317e-05/0.0201, allocations: 8 kB / 261.9 MB, free: 7.863 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.0002711/0.02038, allocations: 145.8 kB / 262.1 MB, free: 7.711 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.452e-05/0.02045, allocations: 27.89 kB / 262.1 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.296e-05/0.02053, allocations: 34.05 kB / 262.1 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.02054, allocations: 7.938 kB / 262.2 MB, free: 7.637 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.02054, allocations: 0 / 262.2 MB, free: 7.637 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.02055, allocations: 0 / 262.2 MB, free: 7.637 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004102/0.02096, allocations: 221.1 kB / 262.4 MB, free: 7.391 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.02096, allocations: 0 / 262.4 MB, free: 7.391 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002698/0.02123, allocations: 39.92 kB / 262.4 MB, free: 7.352 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002581/0.02149, allocations: 48.81 kB / 262.5 MB, free: 7.301 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.02151, allocations: 8 kB / 262.5 MB, free: 7.293 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001831/0.02334, allocations: 1.292 MB / 263.8 MB, free: 5.898 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.02335, allocations: 0 / 263.8 MB, free: 5.898 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009908/0.02434, allocations: 337.8 kB / 264.1 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.02445, allocations: 31.91 kB / 264.1 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.104e-05/0.02449, allocations: 0 / 264.1 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.02472, allocations: 27.92 kB / 264.1 MB, free: 5.488 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.02485, allocations: 27.94 kB / 264.2 MB, free: 5.461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.02487, allocations: 8 kB / 264.2 MB, free: 5.453 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002054/0.02508, allocations: 141.5 kB / 264.3 MB, free: 5.316 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02508, allocations: 64 / 264.3 MB, free: 5.316 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005808/0.02566, allocations: 91.78 kB / 264.4 MB, free: 5.227 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.0002595/0.02592, allocations: 103.2 kB / 264.5 MB, free: 5.117 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007367/0.02665, allocations: 281.5 kB / 264.8 MB, free: 4.832 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.02666, allocations: 4 kB / 264.8 MB, free: 4.828 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.02707, allocations: 186.5 kB / 265 MB, free: 4.633 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.02748, allocations: 44.34 kB / 265 MB, free: 4.59 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.02966, allocations: 0.5998 MB / 265.6 MB, free: 3.965 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002127/0.02987, allocations: 146.9 kB / 265.8 MB, free: 3.801 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.03001, allocations: 21.95 kB / 265.8 MB, free: 3.781 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.654e-05/0.03009, allocations: 16.5 kB / 265.8 MB, free: 3.766 MB / 250.7 MB Notification: Performance of SimCode: time 8.91e-07/0.03009, allocations: 4 kB / 265.8 MB, free: 3.762 MB / 250.7 MB Notification: Performance of Templates: time 0.01026/0.04035, allocations: 2.918 MB / 268.7 MB, free: 0.875 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.477757393033244]