Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001352/0.001352, allocations: 85.58 kB / 20.68 MB, free: 1.035 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.00152/0.00152, allocations: 158.6 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 177 MB / 204.1 MB, free: 9.148 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 325 MB, free: 464 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.998e-05/2.124e-05, allocations: 2.281 kB / 325 MB, free: 460 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005064/0.005085, allocations: 2.928 MB / 328 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.007385, allocations: 0.7908 MB / 328.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004711/0.007856, allocations: 10.62 kB / 328.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002539/0.00811, allocations: 59.11 kB / 328.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003303/0.008441, allocations: 104.8 kB / 328.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006061/0.009047, allocations: 124.1 kB / 329 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006036/0.00965, allocations: 438.1 kB / 329.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002763/0.009927, allocations: 92 kB / 329.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004538/0.01038, allocations: 250.5 kB / 329.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.01063, allocations: 127.1 kB / 329.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.903e-05/0.0107, allocations: 39 kB / 330 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.01082, allocations: 37.3 kB / 330 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.95e-05/0.01092, allocations: 81.06 kB / 330.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.01111, allocations: 135.2 kB / 330.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005787/0.01169, allocations: 448 kB / 330.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.01169, allocations: 0 / 330.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.01169, allocations: 0 / 330.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.0117, allocations: 0 / 330.7 MB, free: 12.95 MB / 302.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.001153/0.01285, allocations: 0.5769 MB / 331.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.0129, allocations: 17.69 kB / 331.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002202/0.01312, allocations: 50.94 kB / 331.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004722/0.01359, allocations: 229.6 kB / 331.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001303/0.01373, allocations: 130.8 kB / 331.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-05/0.01379, allocations: 33.38 kB / 331.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006803/0.01447, allocations: 395.9 kB / 332.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.01448, allocations: 1.344 kB / 332.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.934e-05/0.01452, allocations: 15.97 kB / 332.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.01454, allocations: 7.281 kB / 332.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004679/0.01501, allocations: 225.1 kB / 332.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001996/0.017, allocations: 1.184 MB / 333.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004846/0.01749, allocations: 157.2 kB / 333.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002459/0.01773, allocations: 88.39 kB / 333.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.01776, allocations: 2.344 kB / 333.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004255/0.01818, allocations: 213.5 kB / 333.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.803e-06/0.01818, allocations: 0 / 333.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001531/0.01971, allocations: 323.2 kB / 334.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.518e-05/0.01981, allocations: 107.1 kB / 334.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.02023, allocations: 246 kB / 334.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.02027, allocations: 35.23 kB / 334.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.02049, allocations: 215.8 kB / 334.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.916e-05/0.02059, allocations: 75.58 kB / 334.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.02074, allocations: 60.52 kB / 335 MB, free: 9.492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002706/0.02101, allocations: 341.6 kB / 335.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002488/0.02126, allocations: 76.52 kB / 335.4 MB, free: 9.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003987/0.02166, allocations: 233.8 kB / 335.6 MB, free: 8.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005275/0.02219, allocations: 236.2 kB / 335.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.02219, allocations: 0 / 335.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001006/0.0232, allocations: 334 kB / 336.2 MB, free: 8.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.02322, allocations: 13.8 kB / 336.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.02323, allocations: 2.875 kB / 336.2 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002927/0.02352, allocations: 60.44 kB / 336.3 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000267/0.02379, allocations: 60.25 kB / 336.3 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.02531, allocations: 1.439 MB / 337.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/0.02562, allocations: 41.39 kB / 337.8 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.02565, allocations: 14.5 kB / 337.8 MB, free: 7.012 MB / 302.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.0002092/0.02586, allocations: 154.3 kB / 338 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.747e-05/0.02591, allocations: 32.47 kB / 338 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.235e-05/0.02596, allocations: 27.92 kB / 338 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.02596, allocations: 2.656 kB / 338 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.02597, allocations: 0 / 338 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.02597, allocations: 5.328 kB / 338 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003096/0.02628, allocations: 236 kB / 338.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.02628, allocations: 0 / 338.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002057/0.02649, allocations: 40.53 kB / 338.3 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002052/0.02669, allocations: 56.23 kB / 338.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.02672, allocations: 9.438 kB / 338.4 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001359/0.02808, allocations: 1.292 MB / 339.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.02808, allocations: 4.062 kB / 339.7 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007897/0.02887, allocations: 349.4 kB / 340 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.02897, allocations: 36.91 kB / 340 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.461e-05/0.02902, allocations: 10.08 kB / 340 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.0292, allocations: 19.55 kB / 340.1 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.02933, allocations: 29.61 kB / 340.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.02935, allocations: 7.609 kB / 340.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001741/0.02952, allocations: 175.3 kB / 340.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02952, allocations: 0 / 340.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004436/0.02997, allocations: 93.88 kB / 340.4 MB, free: 4.836 MB / 302.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.0001514/0.03012, allocations: 107.8 kB / 340.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006538/0.03077, allocations: 301.8 kB / 340.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.03078, allocations: 0 / 340.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003419/0.03112, allocations: 200.2 kB / 341 MB, free: 4.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.03139, allocations: 28.8 kB / 341 MB, free: 4.359 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.03292, allocations: 0.6165 MB / 341.6 MB, free: 3.715 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.03307, allocations: 164.8 kB / 341.8 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000123/0.0332, allocations: 30.27 kB / 341.8 MB, free: 3.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.757e-05/0.03326, allocations: 20.5 kB / 341.8 MB, free: 3.484 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.03326, allocations: 0 / 341.8 MB, free: 3.484 MB / 302.1 MB Notification: Performance of Templates: time 0.007698/0.04095, allocations: 2.901 MB / 344.7 MB, free: 0.625 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.768877737224102]