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.001388/0.001388, allocations: 84.39 kB / 22.21 MB, free: 2.289 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.001761/0.001761, allocations: 166.9 kB / 25.61 MB, free: 8.91 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.098/1.098, allocations: 158.6 MB / 187.5 MB, free: 2.793 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.003e-06/2.003e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.48e-05/2.68e-05, allocations: 2.312 kB / 251.5 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.006827/0.006854, allocations: 2.794 MB / 254.3 MB, free: 4.422 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0045/0.01135, allocations: 0.7564 MB / 255 MB, free: 3.656 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.01154, allocations: 7.938 kB / 255 MB, free: 3.648 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001677/0.01171, allocations: 55.5 kB / 255.1 MB, free: 3.594 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.0119, allocations: 91.06 kB / 255.2 MB, free: 3.504 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003414/0.01224, allocations: 115.7 kB / 255.3 MB, free: 3.391 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003609/0.0126, allocations: 382.1 kB / 255.7 MB, free: 3.016 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.01278, allocations: 83.67 kB / 255.8 MB, free: 2.93 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002385/0.01302, allocations: 215.5 kB / 256 MB, free: 2.719 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.0132, allocations: 111.7 kB / 256.1 MB, free: 2.609 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.708e-05/0.01323, allocations: 28 kB / 256.1 MB, free: 2.582 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.255e-05/0.01327, allocations: 32 kB / 256.1 MB, free: 2.551 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.961e-05/0.01332, allocations: 75.72 kB / 256.2 MB, free: 2.477 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.385e-05/0.01341, allocations: 115.8 kB / 256.3 MB, free: 2.363 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.01473, allocations: 251.1 kB / 256.6 MB, free: 2.117 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.01473, allocations: 4 kB / 256.6 MB, free: 2.113 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.01473, allocations: 0 / 256.6 MB, free: 2.113 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.01474, allocations: 0 / 256.6 MB, free: 2.113 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.00071/0.01545, allocations: 0.6299 MB / 257.2 MB, free: 1.441 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.01549, allocations: 15.97 kB / 257.2 MB, free: 1.426 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.126e-05/0.01557, allocations: 60.75 kB / 257.3 MB, free: 1.367 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.01579, allocations: 212 kB / 257.5 MB, free: 1.133 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.007e-05/0.01587, allocations: 128 kB / 257.6 MB, free: 0.9844 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.732e-05/0.01591, allocations: 28.38 kB / 257.6 MB, free: 0.957 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.01619, allocations: 299 kB / 257.9 MB, free: 0.6328 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.0162, allocations: 192 / 257.9 MB, free: 0.6328 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.01622, allocations: 16.12 kB / 257.9 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.01623, allocations: 8 kB / 257.9 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.01634, allocations: 96.44 kB / 258 MB, free: 0.5117 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.01741, allocations: 1.049 MB / 259.1 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.0176, allocations: 123 kB / 259.2 MB, free: 15.27 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.253e-05/0.01765, allocations: 51.55 kB / 259.3 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.01767, allocations: 4 kB / 259.3 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/0.01787, allocations: 191.8 kB / 259.4 MB, free: 14.98 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.01787, allocations: 0 / 259.4 MB, free: 14.98 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005026/0.01837, allocations: 240.9 kB / 259.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.01842, allocations: 106.8 kB / 259.8 MB, free: 14.61 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.01858, allocations: 250.7 kB / 260 MB, free: 14.34 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.965e-05/0.0186, allocations: 33.69 kB / 260.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.01871, allocations: 235.1 kB / 260.3 MB, free: 14.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.897e-05/0.01875, allocations: 75.41 kB / 260.4 MB, free: 14 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.857e-05/0.01882, allocations: 67.31 kB / 260.4 MB, free: 13.92 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.01895, allocations: 0.4962 MB / 260.9 MB, free: 13.41 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.56e-05/0.019, allocations: 31.97 kB / 261 MB, free: 13.38 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.01911, allocations: 192.2 kB / 261.2 MB, free: 13.14 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.01925, allocations: 158.8 kB / 261.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.01925, allocations: 0 / 261.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002389/0.01949, allocations: 226.7 kB / 261.5 MB, free: 12.72 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.01951, allocations: 4 kB / 261.5 MB, free: 12.72 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.01951, allocations: 4 kB / 261.5 MB, free: 12.71 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.01968, allocations: 43.64 kB / 261.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.0198, allocations: 55.91 kB / 261.6 MB, free: 12.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/0.02101, allocations: 1.966 MB / 263.6 MB, free: 10.54 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001322/0.02114, allocations: 35.78 kB / 263.6 MB, free: 10.5 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.02116, allocations: 8 kB / 263.6 MB, free: 10.5 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.0001161/0.02127, allocations: 180.6 kB / 263.8 MB, free: 10.31 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.018e-05/0.02134, allocations: 23.91 kB / 263.8 MB, free: 10.29 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.41e-05/0.02138, allocations: 21.97 kB / 263.9 MB, free: 10.26 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.02138, allocations: 4 kB / 263.9 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.02138, allocations: 4 kB / 263.9 MB, free: 10.25 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.02139, allocations: 7.922 kB / 263.9 MB, free: 10.24 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.02158, allocations: 181 kB / 264.1 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.02158, allocations: 0 / 264.1 MB, free: 10.04 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.374e-05/0.02168, allocations: 35.98 kB / 264.1 MB, free: 10 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001141/0.02179, allocations: 39.66 kB / 264.1 MB, free: 9.961 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.02181, allocations: 11.92 kB / 264.1 MB, free: 9.949 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008215/0.02263, allocations: 1.729 MB / 265.9 MB, free: 8.109 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.02263, allocations: 4.125 kB / 265.9 MB, free: 8.105 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002744/0.0229, allocations: 255.7 kB / 266.1 MB, free: 7.828 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.266e-05/0.02296, allocations: 39.7 kB / 266.2 MB, free: 7.789 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.02298, allocations: 7.984 kB / 266.2 MB, free: 7.781 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.398e-05/0.02304, allocations: 16 kB / 266.2 MB, free: 7.766 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.509e-05/0.02311, allocations: 27.94 kB / 266.2 MB, free: 7.738 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.958e-06/0.02312, allocations: 7.984 kB / 266.2 MB, free: 7.73 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.828e-05/0.02319, allocations: 169.5 kB / 266.4 MB, free: 7.566 MB / 250.7 MB Notification: Performance of sort global known variables: time 2e-08/0.02319, allocations: 0 / 266.4 MB, free: 7.566 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002639/0.02345, allocations: 87.83 kB / 266.5 MB, free: 7.48 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.0002598/0.02371, allocations: 103.2 kB / 266.6 MB, free: 7.371 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003052/0.02402, allocations: 296.4 kB / 266.9 MB, free: 7.062 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.02402, allocations: 0 / 266.9 MB, free: 7.062 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.02418, allocations: 230.8 kB / 267.1 MB, free: 6.816 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.0244, allocations: 39.97 kB / 267.1 MB, free: 6.777 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.02553, allocations: 0.5803 MB / 267.7 MB, free: 6.172 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.42e-05/0.02558, allocations: 88.22 kB / 267.8 MB, free: 6.066 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.536e-05/0.02566, allocations: 25.94 kB / 267.8 MB, free: 6.035 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.02577, allocations: 106.2 kB / 267.9 MB, free: 5.93 MB / 250.7 MB Notification: Performance of SimCode: time 9.52e-07/0.02577, allocations: 0 / 267.9 MB, free: 5.93 MB / 250.7 MB Notification: Performance of Templates: time 0.006214/0.03198, allocations: 3.143 MB / 271.1 MB, free: 2.82 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 -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: 3.046779008116573]