Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.0018/0.0018, allocations: 111 kB / 21.18 MB, free: 0.6758 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.002181/0.002181, allocations: 206.6 kB / 24.47 MB, free: 3.977 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 2.029/2.029, 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 47.92 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3813/0.3834, allocations: 53.36 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006752/0.3901, allocations: 2.93 MB / 435.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002545/0.3927, allocations: 0.7895 MB / 436.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002844/0.393, allocations: 4 kB / 436.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.3933, allocations: 59.42 kB / 436.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003799/0.3937, allocations: 111 kB / 436.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006685/0.3943, allocations: 123.8 kB / 436.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007481/0.3951, allocations: 418.2 kB / 436.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003202/0.3954, allocations: 100.3 kB / 436.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004141/0.3958, allocations: 171.4 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003546/0.3962, allocations: 175.2 kB / 437.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.84e-05/0.3962, allocations: 32 kB / 437.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.3964, allocations: 40 kB / 437.3 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.3965, allocations: 83.69 kB / 437.3 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003536/0.3969, allocations: 163.2 kB / 437.5 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007111/0.3976, allocations: 426 kB / 437.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3976, allocations: 0 / 437.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3976, allocations: 0 / 437.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.3976, allocations: 0 / 437.9 MB, free: 1.121 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00148/0.3991, allocations: 0.5897 MB / 438.5 MB, free: 0.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.3991, allocations: 12.02 kB / 438.5 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002802/0.3994, allocations: 52.66 kB / 438.6 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000582/0.4, allocations: 227.5 kB / 438.8 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001477/0.4001, allocations: 132 kB / 438.9 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.045e-05/0.4002, allocations: 32.38 kB / 439 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009142/0.4011, allocations: 394.2 kB / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.4011, allocations: 0 / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.4012, allocations: 16 kB / 439.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.4012, allocations: 8 kB / 439.4 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008715/0.4021, allocations: 222.5 kB / 439.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002222/0.4043, allocations: 1.186 MB / 440.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003779/0.4047, allocations: 154.5 kB / 440.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.4049, allocations: 88.84 kB / 441 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.4049, allocations: 4 kB / 441 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000499/0.4054, allocations: 219.2 kB / 441.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.4054, allocations: 3.938 kB / 441.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001524/0.4069, allocations: 325.5 kB / 441.5 MB, free: 13.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001449/0.4071, allocations: 110.8 kB / 441.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003444/0.4074, allocations: 245 kB / 441.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.593e-05/0.4074, allocations: 37.69 kB / 441.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003561/0.4078, allocations: 216.1 kB / 442.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.101e-05/0.4079, allocations: 63.5 kB / 442.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002008/0.4081, allocations: 65.97 kB / 442.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002167/0.4083, allocations: 338.8 kB / 442.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.4086, allocations: 72.62 kB / 442.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/0.409, allocations: 232.9 kB / 442.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005851/0.4096, allocations: 235.6 kB / 443.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.4096, allocations: 4 kB / 443.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001095/0.4107, allocations: 336.5 kB / 443.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.391e-05/0.4107, allocations: 7.938 kB / 443.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.4107, allocations: 4 kB / 443.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004393/0.4112, allocations: 56.81 kB / 443.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.4116, allocations: 64.06 kB / 443.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002186/0.4138, allocations: 1.438 MB / 445 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003963/0.4141, allocations: 43.77 kB / 445.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.4142, allocations: 12.16 kB / 445.1 MB, free: 9.461 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0002698/0.4145, allocations: 161.7 kB / 445.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.485e-05/0.4145, allocations: 27.81 kB / 445.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.551e-05/0.4146, allocations: 26.27 kB / 445.3 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.4146, allocations: 4 kB / 445.3 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.4146, allocations: 7.875 kB / 445.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4146, allocations: 0 / 445.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004174/0.415, allocations: 237.2 kB / 445.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.415, allocations: 0 / 445.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002875/0.4153, allocations: 35.98 kB / 445.6 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002545/0.4156, allocations: 48.81 kB / 445.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.4156, allocations: 4 kB / 445.6 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/0.4173, allocations: 1.307 MB / 446.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4173, allocations: 3.938 kB / 446.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.4183, allocations: 349.6 kB / 447.3 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.4185, allocations: 39.8 kB / 447.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.386e-05/0.4185, allocations: 8 kB / 447.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.4188, allocations: 24.14 kB / 447.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.4189, allocations: 27.94 kB / 447.4 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.4189, allocations: 4 kB / 447.4 MB, free: 6.996 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002306/0.4191, allocations: 172.5 kB / 447.5 MB, free: 6.828 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4191, allocations: 0 / 447.5 MB, free: 6.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006255/0.4198, allocations: 91.78 kB / 447.6 MB, free: 6.738 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002159/0.42, allocations: 107.1 kB / 447.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009121/0.4209, allocations: 308.1 kB / 448 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4209, allocations: 0 / 448 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004491/0.4214, allocations: 198.6 kB / 448.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.4217, allocations: 28.42 kB / 448.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002311/0.4241, allocations: 0.6773 MB / 448.9 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.4243, allocations: 164.8 kB / 449.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.4244, allocations: 26.28 kB / 449.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.416e-05/0.4245, allocations: 19.44 kB / 449.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4245, allocations: 0 / 449.1 MB, free: 5.148 MB / 350.1 MB Notification: Performance of Templates: time 0.008137/0.4327, allocations: 3.335 MB / 452.5 MB, free: 1.863 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.996278291000635]