Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 92.62 kB / 20.96 MB, free: 3.477 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 153.4 kB / 24.26 MB, free: 184 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.714e-05/2.865e-05, allocations: 2.312 kB / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004555/0.004584, allocations: 2.678 MB / 270 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.006183, allocations: 0.7048 MB / 270.7 MB, free: 3.301 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002147/0.006397, allocations: 4 kB / 270.7 MB, free: 3.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002064/0.006604, allocations: 47.5 kB / 270.8 MB, free: 3.25 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.006866, allocations: 99.08 kB / 270.9 MB, free: 3.152 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003851/0.007252, allocations: 107.7 kB / 271 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005198/0.007771, allocations: 390.1 kB / 271.3 MB, free: 2.664 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.007973, allocations: 79.66 kB / 271.4 MB, free: 2.582 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000346/0.008319, allocations: 211.5 kB / 271.6 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002073/0.008526, allocations: 111.7 kB / 271.7 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-05/0.008583, allocations: 32 kB / 271.8 MB, free: 2.234 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.205e-05/0.008645, allocations: 32 kB / 271.8 MB, free: 2.203 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.849e-05/0.008724, allocations: 75.72 kB / 271.9 MB, free: 2.129 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.008881, allocations: 111.7 kB / 272 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005688/0.00945, allocations: 382.7 kB / 272.4 MB, free: 1.645 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.009452, allocations: 0 / 272.4 MB, free: 1.645 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.009453, allocations: 0 / 272.4 MB, free: 1.645 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.009465, allocations: 0 / 272.4 MB, free: 1.645 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.001199/0.01066, allocations: 0.5339 MB / 272.9 MB, free: 1.082 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.0107, allocations: 8.922 kB / 272.9 MB, free: 1.074 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.01085, allocations: 60.7 kB / 273 MB, free: 1.016 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.01128, allocations: 209.9 kB / 273.2 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001412/0.01142, allocations: 128 kB / 273.3 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.491e-05/0.01149, allocations: 28.38 kB / 273.3 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006098/0.0121, allocations: 353.9 kB / 273.7 MB, free: 240 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.01211, allocations: 192 / 273.7 MB, free: 240 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.01215, allocations: 20.06 kB / 273.7 MB, free: 220 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.01216, allocations: 8 kB / 273.7 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003873/0.01255, allocations: 190.5 kB / 273.9 MB, free: 16 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/0.01443, allocations: 0.9736 MB / 274.9 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003344/0.01477, allocations: 150.5 kB / 275 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.01492, allocations: 68.83 kB / 275.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.01493, allocations: 4 kB / 275.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003204/0.01525, allocations: 216.2 kB / 275.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.153e-06/0.01526, allocations: 0 / 275.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001165/0.01642, allocations: 318.5 kB / 275.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.528e-05/0.01651, allocations: 106.8 kB / 275.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.01675, allocations: 199.8 kB / 275.9 MB, free: 13.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.738e-05/0.01679, allocations: 33.7 kB / 275.9 MB, free: 13.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.01694, allocations: 184.4 kB / 276.1 MB, free: 13.63 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.18e-05/0.01703, allocations: 79.41 kB / 276.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.01714, allocations: 57.66 kB / 276.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.01732, allocations: 330.8 kB / 276.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.01747, allocations: 71.91 kB / 276.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.01772, allocations: 199.9 kB / 276.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003233/0.01805, allocations: 184.2 kB / 277 MB, free: 12.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.01805, allocations: 4 kB / 277 MB, free: 12.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005196/0.01857, allocations: 288.4 kB / 277.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.01859, allocations: 8 kB / 277.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.0186, allocations: 0 / 277.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002763/0.01887, allocations: 57.03 kB / 277.4 MB, free: 12.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000223/0.01909, allocations: 55.91 kB / 277.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001609/0.0207, allocations: 1.442 MB / 278.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.02094, allocations: 31.88 kB / 278.9 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.02096, allocations: 12 kB / 278.9 MB, free: 10.64 MB / 266.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.0001676/0.02113, allocations: 141.8 kB / 279 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.907e-05/0.02119, allocations: 39.78 kB / 279.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.768e-05/0.02123, allocations: 21.97 kB / 279.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.02124, allocations: 8.031 kB / 279.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.02124, allocations: 0 / 279.1 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.02125, allocations: 7.969 kB / 279.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002926/0.02154, allocations: 221.1 kB / 279.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.02154, allocations: 0 / 279.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001797/0.02172, allocations: 31.92 kB / 279.4 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002021/0.02193, allocations: 56.81 kB / 279.4 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.02195, allocations: 7.984 kB / 279.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.02339, allocations: 1.292 MB / 280.7 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.02339, allocations: 0 / 280.7 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007311/0.02413, allocations: 336.8 kB / 281 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.908e-05/0.0242, allocations: 31.92 kB / 281.1 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.02424, allocations: 4 kB / 281.1 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.02441, allocations: 15.98 kB / 281.1 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-05/0.0245, allocations: 35.88 kB / 281.1 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.02451, allocations: 4 kB / 281.1 MB, free: 8.238 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001528/0.02467, allocations: 149.5 kB / 281.3 MB, free: 8.094 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02467, allocations: 0 / 281.3 MB, free: 8.094 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003829/0.02505, allocations: 87.78 kB / 281.4 MB, free: 8.008 MB / 266.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.0001395/0.02519, allocations: 111.2 kB / 281.5 MB, free: 7.887 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005699/0.02576, allocations: 270.2 kB / 281.7 MB, free: 7.609 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.02576, allocations: 0 / 281.7 MB, free: 7.609 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003107/0.02607, allocations: 198.8 kB / 281.9 MB, free: 7.402 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.02635, allocations: 43.33 kB / 282 MB, free: 7.363 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.02794, allocations: 0.6061 MB / 282.6 MB, free: 6.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.02827, allocations: 150.9 kB / 282.7 MB, free: 6.562 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.278e-05/0.02836, allocations: 25.92 kB / 282.8 MB, free: 6.535 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.845e-05/0.02842, allocations: 20.5 kB / 282.8 MB, free: 6.516 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.02842, allocations: 0 / 282.8 MB, free: 6.516 MB / 266.7 MB Notification: Performance of Templates: time 0.007288/0.03571, allocations: 2.906 MB / 285.7 MB, free: 3.656 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.4305134860333055]