Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00179/0.00179, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002443/0.002443, allocations: 214.7 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.845/1.845, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 51.92 kB / 379 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.36, allocations: 53.37 MB / 432.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.006977/0.367, allocations: 2.703 MB / 435 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002465/0.3695, allocations: 0.7245 MB / 435.8 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.3697, allocations: 7.938 kB / 435.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002941/0.37, allocations: 55.5 kB / 435.8 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003591/0.3704, allocations: 83.19 kB / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005838/0.371, allocations: 119.7 kB / 436 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000684/0.3716, allocations: 366.4 kB / 436.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002943/0.3719, allocations: 79.69 kB / 436.5 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002846/0.3722, allocations: 147.5 kB / 436.6 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003462/0.3726, allocations: 155.4 kB / 436.8 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.952e-05/0.3726, allocations: 28 kB / 436.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.612e-05/0.3727, allocations: 32 kB / 436.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.3728, allocations: 67.77 kB / 436.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002209/0.373, allocations: 139.4 kB / 437 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006507/0.3737, allocations: 369.5 kB / 437.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3737, allocations: 0 / 437.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3737, allocations: 0 / 437.4 MB, free: 1.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.3737, allocations: 0 / 437.4 MB, free: 1.633 MB / 334.1 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.001589/0.3753, allocations: 0.5378 MB / 437.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3754, allocations: 8.031 kB / 437.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.3755, allocations: 44.7 kB / 438 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000584/0.3761, allocations: 210.7 kB / 438.2 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.3762, allocations: 128 kB / 438.3 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.159e-05/0.3763, allocations: 24.38 kB / 438.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000901/0.3772, allocations: 357.4 kB / 438.7 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.3772, allocations: 0 / 438.7 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.323e-05/0.3773, allocations: 12 kB / 438.7 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.3773, allocations: 11.98 kB / 438.7 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005288/0.3778, allocations: 190.5 kB / 438.9 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002392/0.3802, allocations: 0.9612 MB / 439.8 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004668/0.3807, allocations: 154.5 kB / 440 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/0.3809, allocations: 72.84 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.3809, allocations: 0 / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004581/0.3814, allocations: 211.3 kB / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.334e-06/0.3814, allocations: 0 / 440.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001641/0.383, allocations: 309.7 kB / 440.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.938e-05/0.3831, allocations: 114.7 kB / 440.7 MB, free: 14.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.3835, allocations: 207.8 kB / 440.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.3835, allocations: 33.64 kB / 440.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002035/0.3837, allocations: 180.4 kB / 441.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3838, allocations: 71.42 kB / 441.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.384, allocations: 61.66 kB / 441.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002125/0.3842, allocations: 334.8 kB / 441.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002371/0.3844, allocations: 67.97 kB / 441.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003678/0.3848, allocations: 196 kB / 441.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005088/0.3853, allocations: 188.1 kB / 442 MB, free: 12.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3853, allocations: 0 / 442 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008024/0.3861, allocations: 272.5 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/0.3861, allocations: 8 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3861, allocations: 0 / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004417/0.3866, allocations: 57.03 kB / 442.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/0.3869, allocations: 51.92 kB / 442.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/0.3892, allocations: 1.45 MB / 443.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004117/0.3896, allocations: 35.86 kB / 443.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.3896, allocations: 16.16 kB / 443.9 MB, free: 10.67 MB / 350.1 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.0002582/0.3899, allocations: 149.7 kB / 444 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.021e-05/0.3899, allocations: 19.84 kB / 444 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.308e-05/0.39, allocations: 25.95 kB / 444.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.39, allocations: 4 kB / 444.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.39, allocations: 0 / 444.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.39, allocations: 0 / 444.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.3904, allocations: 217.2 kB / 444.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3904, allocations: 0 / 444.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002981/0.3907, allocations: 39.92 kB / 444.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003123/0.391, allocations: 56.75 kB / 444.4 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.391, allocations: 4 kB / 444.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.3929, allocations: 1.296 MB / 445.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3929, allocations: 0 / 445.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.394, allocations: 325.7 kB / 446 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001327/0.3941, allocations: 43.7 kB / 446 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.116e-05/0.3942, allocations: 4 kB / 446 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.3944, allocations: 28.14 kB / 446.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.3945, allocations: 35.81 kB / 446.1 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.3945, allocations: 4 kB / 446.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001813/0.3947, allocations: 149.5 kB / 446.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3947, allocations: 0 / 446.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006138/0.3953, allocations: 79.89 kB / 446.3 MB, free: 8.051 MB / 350.1 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.0001542/0.3955, allocations: 103.2 kB / 446.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007067/0.3962, allocations: 278.8 kB / 446.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3962, allocations: 0 / 446.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.3966, allocations: 200 kB / 446.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.397, allocations: 31.75 kB / 446.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.3992, allocations: 0.6597 MB / 447.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.3994, allocations: 154.7 kB / 447.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.3995, allocations: 17.95 kB / 447.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.721e-05/0.3996, allocations: 19.44 kB / 447.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of SimCode: time 1.382e-06/0.3996, allocations: 0 / 447.8 MB, free: 6.523 MB / 350.1 MB Notification: Performance of Templates: time 0.01095/0.4105, allocations: 3.268 MB / 451.1 MB, free: 3.312 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.359062273011659]