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.002452/0.002452, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.001985/0.001985, allocations: 168.4 kB / 25.03 MB, free: 8.41 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.401/1.401, allocations: 158.6 MB / 186.8 MB, free: 2.91 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 1.934e-06/1.934e-06, allocations: 0 / 250.4 MB, free: 7.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.508e-05/4.702e-05, allocations: 6.109 kB / 250.4 MB, free: 7.828 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.006531/0.006578, allocations: 2.79 MB / 253.2 MB, free: 5.016 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.008766, allocations: 0.7603 MB / 253.9 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001757/0.008941, allocations: 4 kB / 253.9 MB, free: 4.242 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000245/0.009186, allocations: 55.44 kB / 254 MB, free: 4.188 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002808/0.009467, allocations: 91.12 kB / 254.1 MB, free: 4.098 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004987/0.009966, allocations: 103.7 kB / 254.2 MB, free: 3.996 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006181/0.01058, allocations: 398 kB / 254.6 MB, free: 3.605 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.01085, allocations: 75.69 kB / 254.6 MB, free: 3.527 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005227/0.01138, allocations: 211.5 kB / 254.8 MB, free: 3.32 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000273/0.01165, allocations: 115.7 kB / 255 MB, free: 3.207 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.651e-05/0.01173, allocations: 28 kB / 255 MB, free: 3.18 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.917e-05/0.0118, allocations: 32 kB / 255 MB, free: 3.148 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001182/0.01192, allocations: 71.73 kB / 255.1 MB, free: 3.078 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002066/0.01213, allocations: 115.7 kB / 255.2 MB, free: 2.965 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006654/0.0128, allocations: 382.8 kB / 255.6 MB, free: 2.59 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.0128, allocations: 0 / 255.6 MB, free: 2.59 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.0128, allocations: 4 kB / 255.6 MB, free: 2.586 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.01281, allocations: 0 / 255.6 MB, free: 2.586 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.001533/0.01434, allocations: 0.6375 MB / 256.2 MB, free: 1.91 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.0144, allocations: 11.98 kB / 256.2 MB, free: 1.898 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.01458, allocations: 64.69 kB / 256.3 MB, free: 1.836 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005077/0.01509, allocations: 224.6 kB / 256.5 MB, free: 1.59 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.01525, allocations: 128 kB / 256.6 MB, free: 1.441 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.452e-05/0.01533, allocations: 28.38 kB / 256.7 MB, free: 1.414 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007642/0.01609, allocations: 370.3 kB / 257 MB, free: 1.023 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.01611, allocations: 192 / 257 MB, free: 1.023 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.625e-05/0.01615, allocations: 16.12 kB / 257 MB, free: 1.008 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.01617, allocations: 8 kB / 257 MB, free: 1 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.01667, allocations: 186.5 kB / 257.2 MB, free: 0.8164 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002831/0.0195, allocations: 1.17 MB / 258.4 MB, free: 15.57 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.01997, allocations: 163 kB / 258.6 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.02018, allocations: 79.61 kB / 258.6 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.02021, allocations: 7.984 kB / 258.6 MB, free: 15.31 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004407/0.02065, allocations: 219.8 kB / 258.9 MB, free: 15.06 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.783e-06/0.02065, allocations: 0 / 258.9 MB, free: 15.06 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001341/0.02199, allocations: 316.9 kB / 259.2 MB, free: 14.74 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.02211, allocations: 106.8 kB / 259.3 MB, free: 14.61 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003775/0.02248, allocations: 286.7 kB / 259.6 MB, free: 14.31 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.534e-05/0.02253, allocations: 33.7 kB / 259.6 MB, free: 14.27 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002546/0.02278, allocations: 243.1 kB / 259.8 MB, free: 14.03 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.02289, allocations: 75.42 kB / 259.9 MB, free: 13.96 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.02305, allocations: 67.36 kB / 260 MB, free: 13.88 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003484/0.0234, allocations: 0.5079 MB / 260.5 MB, free: 13.36 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.0236, allocations: 67.97 kB / 260.5 MB, free: 13.3 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003837/0.02398, allocations: 236.1 kB / 260.8 MB, free: 13.01 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004584/0.02444, allocations: 210.9 kB / 261 MB, free: 12.77 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.02444, allocations: 0 / 261 MB, free: 12.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007212/0.02516, allocations: 294.8 kB / 261.3 MB, free: 12.48 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.02519, allocations: 12 kB / 261.3 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.0252, allocations: 3.938 kB / 261.3 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003421/0.02554, allocations: 51.66 kB / 261.3 MB, free: 12.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.02586, allocations: 55.91 kB / 261.4 MB, free: 12.35 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002507/0.02836, allocations: 2.055 MB / 263.4 MB, free: 10.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003303/0.02869, allocations: 35.83 kB / 263.5 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.664e-05/0.02873, allocations: 12 kB / 263.5 MB, free: 10.13 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.0002748/0.029, allocations: 188.5 kB / 263.7 MB, free: 9.938 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.79e-05/0.02907, allocations: 24 kB / 263.7 MB, free: 9.914 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.646e-05/0.02915, allocations: 29.95 kB / 263.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.02916, allocations: 7.938 kB / 263.7 MB, free: 9.871 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.02916, allocations: 0 / 263.7 MB, free: 9.871 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.02917, allocations: 0 / 263.7 MB, free: 9.871 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004836/0.02965, allocations: 264.4 kB / 264 MB, free: 9.578 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.02965, allocations: 0 / 264 MB, free: 9.578 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002518/0.0299, allocations: 31.98 kB / 264 MB, free: 9.547 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002436/0.03015, allocations: 51.64 kB / 264.1 MB, free: 9.492 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/0.03017, allocations: 11.94 kB / 264.1 MB, free: 9.48 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002301/0.03248, allocations: 1.814 MB / 265.9 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.03248, allocations: 0 / 265.9 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009203/0.0334, allocations: 343.8 kB / 266.2 MB, free: 7.18 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001268/0.03352, allocations: 35.83 kB / 266.3 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.004e-05/0.03358, allocations: 4 kB / 266.3 MB, free: 7.141 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.03379, allocations: 15.98 kB / 266.3 MB, free: 7.125 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.03393, allocations: 31.94 kB / 266.3 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.03396, allocations: 12 kB / 266.3 MB, free: 7.082 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002468/0.03421, allocations: 189.4 kB / 266.5 MB, free: 6.898 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.03421, allocations: 0 / 266.5 MB, free: 6.898 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006203/0.03483, allocations: 91.81 kB / 266.6 MB, free: 6.809 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.0001933/0.03502, allocations: 107.1 kB / 266.7 MB, free: 6.695 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0009193/0.03594, allocations: 364.7 kB / 267.1 MB, free: 6.32 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.03594, allocations: 0 / 267.1 MB, free: 6.32 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004881/0.03643, allocations: 258.4 kB / 267.3 MB, free: 6.047 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.03686, allocations: 48.23 kB / 267.4 MB, free: 6 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.03894, allocations: 0.5923 MB / 268 MB, free: 5.379 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.03914, allocations: 150.9 kB / 268.1 MB, free: 5.211 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.03927, allocations: 25.94 kB / 268.1 MB, free: 5.188 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.388e-05/0.03935, allocations: 20.5 kB / 268.1 MB, free: 5.168 MB / 250.7 MB Notification: Performance of SimCode: time 5.81e-07/0.03935, allocations: 0 / 268.1 MB, free: 5.168 MB / 250.7 MB Notification: Performance of Templates: time 0.01071/0.05005, allocations: 2.922 MB / 271.1 MB, free: 2.273 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","/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.681297200033441]