Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.008192/0.008192, allocations: 106.8 kB / 21.98 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001907/0.001907, allocations: 216.4 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.476/1.476, allocations: 230.6 MB / 259 MB, free: 8.027 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002661/0.002661, allocations: 71.88 kB / 379.8 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2792, allocations: 53.35 MB / 433.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004978/0.2842, allocations: 2.914 MB / 436.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.286, allocations: 0.779 MB / 436.9 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002928/0.2863, allocations: 4 kB / 436.9 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000214/0.2865, allocations: 55.44 kB / 436.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002487/0.2867, allocations: 83.2 kB / 437 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003899/0.2871, allocations: 115.7 kB / 437.1 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004225/0.2876, allocations: 366.5 kB / 437.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.2878, allocations: 87.61 kB / 437.6 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.288, allocations: 151.5 kB / 437.7 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.2882, allocations: 147.3 kB / 437.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.802e-05/0.2882, allocations: 28 kB / 437.9 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.514e-05/0.2883, allocations: 32 kB / 437.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.53e-05/0.2884, allocations: 71.75 kB / 438 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.2885, allocations: 167.2 kB / 438.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004643/0.289, allocations: 363.8 kB / 438.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.289, allocations: 0 / 438.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.026e-06/0.289, allocations: 4 kB / 438.5 MB, free: 1.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.289, allocations: 4 kB / 438.5 MB, free: 1.609 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.001046/0.2901, allocations: 0.5339 MB / 439 MB, free: 1.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2901, allocations: 8.031 kB / 439.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.855e-05/0.2902, allocations: 40.7 kB / 439.1 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.2906, allocations: 210.7 kB / 439.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.69e-05/0.2907, allocations: 72.62 kB / 439.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.431e-05/0.2908, allocations: 32.38 kB / 439.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/0.2913, allocations: 302 kB / 439.7 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.2913, allocations: 0 / 439.7 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.2914, allocations: 12 kB / 439.7 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.2914, allocations: 16 kB / 439.7 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003601/0.2917, allocations: 194.5 kB / 439.9 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.2935, allocations: 1.081 MB / 441 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003437/0.2939, allocations: 153.5 kB / 441.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.294, allocations: 76.83 kB / 441.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.2941, allocations: 0 / 441.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002846/0.2943, allocations: 155.7 kB / 441.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.2943, allocations: 4 kB / 441.4 MB, free: 14.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001051/0.2954, allocations: 306.5 kB / 441.7 MB, free: 14.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.777e-05/0.2955, allocations: 110.8 kB / 441.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.2957, allocations: 225 kB / 442 MB, free: 13.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.2958, allocations: 29.7 kB / 442 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.2959, allocations: 188.4 kB / 442.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.546e-05/0.296, allocations: 71.47 kB / 442.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-05/0.2961, allocations: 53.7 kB / 442.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2962, allocations: 338.8 kB / 442.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.2963, allocations: 63.97 kB / 442.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.2966, allocations: 149.5 kB / 442.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.2968, allocations: 193 kB / 443.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2969, allocations: 0 / 443.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004627/0.2973, allocations: 276.5 kB / 443.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.2973, allocations: 4 kB / 443.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.2973, allocations: 4 kB / 443.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000274/0.2976, allocations: 53.03 kB / 443.4 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.2978, allocations: 51.92 kB / 443.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.2993, allocations: 1.468 MB / 444.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002299/0.2996, allocations: 43.86 kB / 445 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.2996, allocations: 12 kB / 445 MB, free: 10.71 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.0001678/0.2998, allocations: 148.5 kB / 445.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.81e-05/0.2998, allocations: 23.86 kB / 445.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.105e-05/0.2999, allocations: 26.27 kB / 445.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.2999, allocations: 4 kB / 445.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.2999, allocations: 0 / 445.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.2999, allocations: 0 / 445.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003355/0.3002, allocations: 300.4 kB / 445.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3002, allocations: 0 / 445.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.3004, allocations: 39.86 kB / 445.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001952/0.3006, allocations: 52.81 kB / 445.6 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.3006, allocations: 7.984 kB / 445.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.3018, allocations: 1.335 MB / 446.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3018, allocations: 0 / 446.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006519/0.3025, allocations: 317.7 kB / 447.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.983e-05/0.3026, allocations: 39.73 kB / 447.2 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.3026, allocations: 8 kB / 447.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.3028, allocations: 20.11 kB / 447.3 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.736e-05/0.3028, allocations: 31.94 kB / 447.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/0.3029, allocations: 4 kB / 447.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001657/0.303, allocations: 160.5 kB / 447.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.303, allocations: 3.938 kB / 447.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003676/0.3034, allocations: 83.83 kB / 447.5 MB, free: 7.953 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.0001332/0.3035, allocations: 106.8 kB / 447.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005793/0.3041, allocations: 286.4 kB / 447.9 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3041, allocations: 0 / 447.9 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002923/0.3044, allocations: 190 kB / 448.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.3047, allocations: 36.84 kB / 448.2 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.3063, allocations: 0.6962 MB / 448.8 MB, free: 6.586 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.3067, allocations: 0.7597 MB / 449.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.611e-05/0.3068, allocations: 23.44 kB / 449.6 MB, free: 5.777 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3068, allocations: 0 / 449.6 MB, free: 5.777 MB / 350.1 MB Notification: Performance of Templates: time 0.006855/0.3137, allocations: 4.203 MB / 453.8 MB, free: 1.582 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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: 7.438462658086792]