Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001606/0.001606, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.002382/0.002382, allocations: 206.8 kB / 24.47 MB, free: 4.023 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.598/1.598, allocations: 230.5 MB / 258.1 MB, free: 8.137 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [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.002058/0.002058, allocations: 67.84 kB / 378.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3229, allocations: 53.32 MB / 432.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004918/0.3278, allocations: 3.185 MB / 435.3 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.3295, allocations: 0.8217 MB / 436.1 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.3297, allocations: 8 kB / 436.1 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001816/0.3299, allocations: 55.42 kB / 436.1 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002149/0.3301, allocations: 107 kB / 436.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000407/0.3305, allocations: 127.8 kB / 436.4 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004947/0.331, allocations: 418.1 kB / 436.8 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.3312, allocations: 99.75 kB / 436.9 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002888/0.3315, allocations: 171.4 kB / 437 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002586/0.3318, allocations: 167.2 kB / 437.2 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.114e-05/0.3319, allocations: 36 kB / 437.2 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.918e-05/0.332, allocations: 43.98 kB / 437.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.126e-05/0.332, allocations: 79.75 kB / 437.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.3323, allocations: 191.1 kB / 437.5 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000659/0.3329, allocations: 432.2 kB / 438 MB, free: 1.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3329, allocations: 0 / 438 MB, free: 1.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3329, allocations: 0 / 438 MB, free: 1.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.3329, allocations: 3.938 kB / 438 MB, free: 1.473 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.00121/0.3342, allocations: 0.6623 MB / 438.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3342, allocations: 12.03 kB / 438.6 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002239/0.3344, allocations: 52.64 kB / 438.7 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.3349, allocations: 281.4 kB / 439 MB, free: 392 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-05/0.335, allocations: 88.59 kB / 439.1 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.218e-05/0.335, allocations: 32.38 kB / 439.1 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005931/0.3356, allocations: 334.9 kB / 439.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.3356, allocations: 3.938 kB / 439.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.3357, allocations: 16 kB / 439.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.3357, allocations: 8 kB / 439.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004455/0.3361, allocations: 218.5 kB / 439.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002102/0.3382, allocations: 1.364 MB / 441 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.3386, allocations: 162.5 kB / 441.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.3388, allocations: 84.77 kB / 441.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.3388, allocations: 4 kB / 441.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002941/0.3391, allocations: 145.9 kB / 441.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.684e-06/0.3391, allocations: 0 / 441.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001225/0.3403, allocations: 410.2 kB / 441.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.114e-05/0.3404, allocations: 110.8 kB / 441.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002903/0.3407, allocations: 262.7 kB / 442.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.3407, allocations: 37.7 kB / 442.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.3409, allocations: 208.2 kB / 442.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.001e-05/0.3409, allocations: 79.36 kB / 442.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.341, allocations: 65.97 kB / 442.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.3412, allocations: 334.8 kB / 442.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.3414, allocations: 80.61 kB / 443 MB, free: 12.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.3416, allocations: 177.4 kB / 443.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004461/0.3421, allocations: 243.6 kB / 443.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.3421, allocations: 0 / 443.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001101/0.3432, allocations: 348.5 kB / 443.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.522e-05/0.3432, allocations: 11.98 kB / 443.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3432, allocations: 4 kB / 443.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/0.3436, allocations: 48.81 kB / 443.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000367/0.3439, allocations: 63.91 kB / 443.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002128/0.3461, allocations: 1.577 MB / 445.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004294/0.3465, allocations: 43.78 kB / 445.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.393e-05/0.3465, allocations: 12 kB / 445.5 MB, free: 9.41 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.0002683/0.3468, allocations: 153.7 kB / 445.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.011e-05/0.3468, allocations: 31.86 kB / 445.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.853e-05/0.3469, allocations: 30.11 kB / 445.7 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.3469, allocations: 4 kB / 445.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.756e-06/0.3469, allocations: 0 / 445.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.3469, allocations: 7.922 kB / 445.7 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000556/0.3475, allocations: 341.4 kB / 446 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.3475, allocations: 0 / 446 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003192/0.3478, allocations: 35.97 kB / 446.1 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002778/0.3481, allocations: 56.75 kB / 446.1 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.3481, allocations: 4 kB / 446.1 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/0.3499, allocations: 1.422 MB / 447.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3499, allocations: 0 / 447.5 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.3511, allocations: 349.6 kB / 447.9 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.3513, allocations: 113 kB / 448 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.256e-05/0.3514, allocations: 7.984 kB / 448 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002729/0.3516, allocations: 19.98 kB / 448 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.3518, allocations: 27.91 kB / 448 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.3518, allocations: 16.05 kB / 448.1 MB, free: 6.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002972/0.3521, allocations: 182 kB / 448.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3521, allocations: 3.938 kB / 448.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007222/0.3528, allocations: 91.78 kB / 448.3 MB, free: 6.297 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.0001911/0.353, allocations: 115.2 kB / 448.4 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000944/0.3539, allocations: 305.9 kB / 448.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3539, allocations: 4 kB / 448.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004952/0.3544, allocations: 198.5 kB / 448.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.3549, allocations: 35.64 kB / 449 MB, free: 5.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.3572, allocations: 0.6873 MB / 449.7 MB, free: 4.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005457/0.3577, allocations: 0.7714 MB / 450.4 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.3579, allocations: 30.27 kB / 450.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.922e-05/0.3579, allocations: 23.44 kB / 450.5 MB, free: 4.055 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.358, allocations: 4 kB / 450.5 MB, free: 4.051 MB / 350.1 MB Notification: Performance of Templates: time 0.01163/0.3696, allocations: 3.259 MB / 453.8 MB, free: 0.8164 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 5.037575169932097]