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.001587/0.001587, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00189/0.00189, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 247.5 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001727, allocations: 59.53 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1226, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004379/0.127, allocations: 3.156 MB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.1285, allocations: 0.8217 MB / 362.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.1286, allocations: 8 kB / 362.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.1289, allocations: 59.42 kB / 362.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001735/0.129, allocations: 99.05 kB / 363 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.1294, allocations: 123.7 kB / 363.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004248/0.1299, allocations: 422.1 kB / 363.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000241/0.1301, allocations: 135.7 kB / 363.7 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.1304, allocations: 171.3 kB / 363.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002023/0.1306, allocations: 171.2 kB / 364 MB, free: 8.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.991e-05/0.1307, allocations: 40 kB / 364.1 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.167e-05/0.1307, allocations: 36 kB / 364.1 MB, free: 8.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.394e-05/0.1308, allocations: 79.73 kB / 364.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.131, allocations: 191.1 kB / 364.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004012/0.1314, allocations: 426.5 kB / 364.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1314, allocations: 0 / 364.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1314, allocations: 0 / 364.8 MB, free: 7.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.1314, allocations: 4 kB / 364.8 MB, free: 7.41 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.001136/0.1326, allocations: 0.6548 MB / 365.5 MB, free: 6.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1326, allocations: 8.031 kB / 365.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.1329, allocations: 52.45 kB / 365.5 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004429/0.1333, allocations: 289.2 kB / 365.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.68e-05/0.1334, allocations: 84.61 kB / 365.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.96e-05/0.1335, allocations: 32.38 kB / 365.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006715/0.1342, allocations: 338.8 kB / 366.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.1342, allocations: 0 / 366.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.1342, allocations: 16 kB / 366.3 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.1342, allocations: 8 kB / 366.3 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004369/0.1347, allocations: 222.5 kB / 366.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.1368, allocations: 1.356 MB / 367.8 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/0.1372, allocations: 166.5 kB / 368 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001728/0.1374, allocations: 92.77 kB / 368.1 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.1375, allocations: 4 kB / 368.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000324/0.1378, allocations: 157.5 kB / 368.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.904e-06/0.1378, allocations: 0 / 368.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001139/0.1389, allocations: 403.1 kB / 368.6 MB, free: 3.289 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.563e-05/0.139, allocations: 114.7 kB / 368.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002567/0.1393, allocations: 262.6 kB / 369 MB, free: 2.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.1393, allocations: 33.7 kB / 369 MB, free: 2.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.1395, allocations: 207.9 kB / 369.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.076e-05/0.1395, allocations: 67.09 kB / 369.3 MB, free: 2.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.1396, allocations: 61.94 kB / 369.4 MB, free: 2.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1398, allocations: 338.8 kB / 369.7 MB, free: 2.164 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.1399, allocations: 76.61 kB / 369.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.1402, allocations: 177.5 kB / 370 MB, free: 1.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003374/0.1405, allocations: 245.2 kB / 370.2 MB, free: 1.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1405, allocations: 4 kB / 370.2 MB, free: 1.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006935/0.1412, allocations: 344.3 kB / 370.5 MB, free: 1.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1412, allocations: 4 kB / 370.5 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1413, allocations: 7.984 kB / 370.5 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002757/0.1415, allocations: 56.81 kB / 370.6 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.1418, allocations: 68 kB / 370.7 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1571/0.2989, allocations: 1.555 MB / 372.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003867/0.2993, allocations: 44.06 kB / 372.3 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.29e-05/0.2993, allocations: 13.88 kB / 372.3 MB, free: 19.03 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.0001743/0.2995, allocations: 155.5 kB / 372.4 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-05/0.2996, allocations: 32.09 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.917e-05/0.2996, allocations: 32.31 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2996, allocations: 2.5 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.2996, allocations: 0 / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2997, allocations: 2.031 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003434/0.3, allocations: 338.9 kB / 372.8 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3, allocations: 0 / 372.8 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.3002, allocations: 46.83 kB / 372.9 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002239/0.3005, allocations: 46.41 kB / 372.9 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.3005, allocations: 7.484 kB / 372.9 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008919/0.3014, allocations: 1.425 MB / 374.4 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3014, allocations: 2.562 kB / 374.4 MB, free: 17.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007107/0.3021, allocations: 348.7 kB / 374.7 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.92e-05/0.3022, allocations: 119 kB / 374.8 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.3023, allocations: 9.922 kB / 374.8 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001728/0.3025, allocations: 16.48 kB / 374.8 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.803e-05/0.3026, allocations: 33.02 kB / 374.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.3026, allocations: 10.03 kB / 374.9 MB, free: 17.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001669/0.3027, allocations: 184.6 kB / 375.1 MB, free: 17.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3028, allocations: 0 / 375.1 MB, free: 17.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000402/0.3032, allocations: 92.44 kB / 375.2 MB, free: 17.13 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.0001038/0.3033, allocations: 104.5 kB / 375.3 MB, free: 17.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005914/0.3039, allocations: 317.3 kB / 375.6 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3039, allocations: 1.531 kB / 375.6 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002862/0.3042, allocations: 205.4 kB / 375.8 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.3045, allocations: 35.58 kB / 375.8 MB, free: 16.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.3058, allocations: 0.6738 MB / 376.5 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001964/0.306, allocations: 0.7687 MB / 377.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001113/0.3062, allocations: 28.48 kB / 377.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.512e-05/0.3062, allocations: 21.34 kB / 377.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3062, allocations: 0 / 377.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of Templates: time 0.007011/0.3132, allocations: 3.108 MB / 380.4 MB, free: 15.61 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches