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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=48000,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=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001273, allocations: 115.6 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 69.11 kB / 306.4 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1277, allocations: 50.54 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00461/0.1323, allocations: 3.186 MB / 360.2 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.134, allocations: 0.8179 MB / 361 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003117/0.1344, allocations: 11.94 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002331/0.1346, allocations: 43.67 kB / 361 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.1349, allocations: 87.25 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004576/0.1354, allocations: 99.91 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004887/0.1359, allocations: 418.2 kB / 361.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.1362, allocations: 139.7 kB / 361.8 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000325/0.1365, allocations: 163.4 kB / 361.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.1368, allocations: 171.2 kB / 362.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.397e-05/0.1368, allocations: 36 kB / 362.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.137, allocations: 43.97 kB / 362.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.648e-05/0.137, allocations: 79.7 kB / 362.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002323/0.1373, allocations: 187.1 kB / 362.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004508/0.1377, allocations: 422.8 kB / 362.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1378, allocations: 0 / 362.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1378, allocations: 7.938 kB / 362.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.1378, allocations: 3.938 kB / 362.9 MB, free: 8.512 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.001169/0.139, allocations: 0.6548 MB / 363.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.139, allocations: 12.03 kB / 363.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002095/0.1392, allocations: 56.39 kB / 363.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.1396, allocations: 281.2 kB / 363.9 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-05/0.1397, allocations: 76.62 kB / 363.9 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.043e-05/0.1398, allocations: 36.36 kB / 364 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005965/0.1404, allocations: 334.9 kB / 364.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.1404, allocations: 0 / 364.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.783e-05/0.1404, allocations: 20 kB / 364.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.1405, allocations: 11.94 kB / 364.3 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004289/0.1409, allocations: 214.5 kB / 364.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001933/0.1428, allocations: 1.368 MB / 365.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003516/0.1432, allocations: 174.5 kB / 366.1 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.1434, allocations: 92.77 kB / 366.2 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.1434, allocations: 3.984 kB / 366.2 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003229/0.1437, allocations: 158.8 kB / 366.3 MB, free: 4.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1437, allocations: 0 / 366.3 MB, free: 4.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001089/0.1448, allocations: 405.1 kB / 366.7 MB, free: 4.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.978e-05/0.1449, allocations: 110.8 kB / 366.8 MB, free: 4.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.1452, allocations: 258.6 kB / 367.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.875e-05/0.1452, allocations: 33.7 kB / 367.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.1454, allocations: 203.9 kB / 367.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.346e-05/0.1454, allocations: 67.09 kB / 367.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.1455, allocations: 65.94 kB / 367.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1457, allocations: 338.8 kB / 367.8 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.1458, allocations: 76.61 kB / 367.8 MB, free: 3.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002365/0.1461, allocations: 177.5 kB / 368 MB, free: 2.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003329/0.1464, allocations: 229.5 kB / 368.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1464, allocations: 0 / 368.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006669/0.1471, allocations: 344.3 kB / 368.6 MB, free: 2.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.1471, allocations: 4 kB / 368.6 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.1471, allocations: 4 kB / 368.6 MB, free: 2.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002664/0.1474, allocations: 68.94 kB / 368.7 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/0.1477, allocations: 59.91 kB / 368.7 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.1491, allocations: 1.583 MB / 370.3 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002464/0.1493, allocations: 43.77 kB / 370.3 MB, free: 476 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.1494, allocations: 16 kB / 370.4 MB, free: 460 kB / 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.0001449/0.1495, allocations: 149.7 kB / 370.5 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.1495, allocations: 27.66 kB / 370.5 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.908e-05/0.1496, allocations: 38.11 kB / 370.6 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1496, allocations: 0 / 370.6 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.1496, allocations: 4 kB / 370.6 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1496, allocations: 0 / 370.6 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2056/0.3553, allocations: 334.5 kB / 370.9 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/0.3553, allocations: 0 / 370.9 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003/0.3556, allocations: 37.88 kB / 370.9 MB, free: 20.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002777/0.3559, allocations: 53.41 kB / 371 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.07e-05/0.356, allocations: 6.641 kB / 371 MB, free: 20.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/0.3571, allocations: 1.421 MB / 372.4 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3571, allocations: 1.406 kB / 372.4 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00081/0.3579, allocations: 348.8 kB / 372.8 MB, free: 18.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.3581, allocations: 118.3 kB / 372.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.3582, allocations: 5.469 kB / 372.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.3583, allocations: 22.64 kB / 372.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.3585, allocations: 32.12 kB / 372.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.854e-05/0.3585, allocations: 4.734 kB / 372.9 MB, free: 18.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001996/0.3587, allocations: 185.9 kB / 373.1 MB, free: 18.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3587, allocations: 0 / 373.1 MB, free: 18.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004455/0.3591, allocations: 93.64 kB / 373.2 MB, free: 18.67 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.0001404/0.3593, allocations: 109.1 kB / 373.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007109/0.36, allocations: 318.5 kB / 373.6 MB, free: 18.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.36, allocations: 3.719 kB / 373.6 MB, free: 18.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002936/0.3603, allocations: 205.2 kB / 373.8 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.3606, allocations: 38.22 kB / 373.9 MB, free: 18.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.3622, allocations: 0.7876 MB / 374.7 MB, free: 17.94 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.3625, allocations: 0.7781 MB / 375.4 MB, free: 17.24 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001488/0.3626, allocations: 22.52 kB / 375.5 MB, free: 17.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.899e-05/0.3627, allocations: 28.69 kB / 375.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3627, allocations: 0 / 375.5 MB, free: 17.23 MB / 302.1 MB Notification: Performance of Templates: time 0.009203/0.3719, allocations: 2.98 MB / 378.5 MB, free: 17.07 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches