Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 112.5 kB / 17.69 MB, free: 5.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001303/0.001304, allocations: 191 kB / 18.63 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001013, allocations: 49.56 kB / 302.1 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1229, allocations: 49.45 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004243/0.1272, allocations: 2.855 MB / 354.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.1285, allocations: 0.7439 MB / 355.1 MB, free: 92 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.1286, allocations: 4 kB / 355.1 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.1288, allocations: 47.5 kB / 355.2 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001869/0.129, allocations: 83.31 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/0.1294, allocations: 107.8 kB / 355.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003551/0.1297, allocations: 374.2 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.13, allocations: 115.2 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001368/0.1301, allocations: 143.5 kB / 356 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.1303, allocations: 155.3 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.563e-05/0.1304, allocations: 32 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.83e-05/0.1305, allocations: 32 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.755e-05/0.1305, allocations: 67.77 kB / 356.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.1307, allocations: 163.2 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003582/0.1311, allocations: 362.7 kB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/0.1311, allocations: 8 kB / 356.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1311, allocations: 0 / 356.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.1311, allocations: 0 / 356.8 MB, free: 14.42 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.00103/0.1321, allocations: 0.6018 MB / 357.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.1322, allocations: 8.031 kB / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.251e-05/0.1323, allocations: 36.56 kB / 357.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004085/0.1327, allocations: 272.8 kB / 357.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.156e-05/0.1328, allocations: 76.62 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/0.1329, allocations: 28.38 kB / 357.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004494/0.1333, allocations: 301.8 kB / 358.1 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.1333, allocations: 3.938 kB / 358.1 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.065e-05/0.1334, allocations: 16 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.1334, allocations: 8 kB / 358.1 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003231/0.1337, allocations: 190.1 kB / 358.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001651/0.1354, allocations: 1.123 MB / 359.4 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.1357, allocations: 158.5 kB / 359.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.1358, allocations: 80.81 kB / 359.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.1359, allocations: 4 kB / 359.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002803/0.1362, allocations: 161 kB / 359.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 3.587e-06/0.1362, allocations: 0 / 359.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001079/0.1373, allocations: 391 kB / 360.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.168e-05/0.1374, allocations: 106.8 kB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.1376, allocations: 221 kB / 360.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.1376, allocations: 29.7 kB / 360.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.1378, allocations: 184.1 kB / 360.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.701e-05/0.1378, allocations: 71 kB / 360.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.639e-05/0.1379, allocations: 57.7 kB / 360.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1381, allocations: 338.8 kB / 361.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.1382, allocations: 67.97 kB / 361.2 MB, free: 9.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.1384, allocations: 136.6 kB / 361.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.1387, allocations: 194 kB / 361.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1387, allocations: 0 / 361.6 MB, free: 9.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000412/0.1391, allocations: 276.3 kB / 361.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1391, allocations: 4 kB / 361.8 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1391, allocations: 4 kB / 361.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.1394, allocations: 57.03 kB / 361.9 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.1396, allocations: 55.91 kB / 362 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001418/0.1411, allocations: 1.564 MB / 363.5 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.1413, allocations: 39.67 kB / 363.6 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.1413, allocations: 12 kB / 363.6 MB, free: 7.098 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001625/0.1415, allocations: 149.8 kB / 363.7 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.378e-05/0.1415, allocations: 27.7 kB / 363.7 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.563e-05/0.1416, allocations: 30.19 kB / 363.8 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.1416, allocations: 0 / 363.8 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.1416, allocations: 0 / 363.8 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.972e-06/0.1416, allocations: 3.984 kB / 363.8 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.1419, allocations: 313.4 kB / 364.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1419, allocations: 0 / 364.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001676/0.1421, allocations: 39.92 kB / 364.1 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000173/0.1423, allocations: 52.81 kB / 364.2 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.1423, allocations: 4 kB / 364.2 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.1435, allocations: 1.433 MB / 365.6 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1435, allocations: 0 / 365.6 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005993/0.1441, allocations: 323 kB / 365.9 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.1442, allocations: 128.6 kB / 366 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.1443, allocations: 0 / 366 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.1444, allocations: 19.98 kB / 366.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.641e-05/0.1445, allocations: 27.95 kB / 366.1 MB, free: 4.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.1446, allocations: 16.06 kB / 366.1 MB, free: 4.312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001419/0.1447, allocations: 164.5 kB / 366.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1447, allocations: 0 / 366.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003433/0.1451, allocations: 79.84 kB / 366.3 MB, free: 4.074 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000127/0.1452, allocations: 100.6 kB / 366.4 MB, free: 3.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006129/0.1458, allocations: 289 kB / 366.7 MB, free: 3.676 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.1458, allocations: 4.062 kB / 366.7 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002782/0.1461, allocations: 198.6 kB / 366.9 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.1465, allocations: 32.42 kB / 367 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001548/0.148, allocations: 0.6513 MB / 367.6 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.1484, allocations: 0.7597 MB / 368.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.985e-05/0.1485, allocations: 22.3 kB / 368.4 MB, free: 1.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.276e-05/0.1486, allocations: 19.44 kB / 368.4 MB, free: 1.926 MB / 302.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1486, allocations: 0 / 368.4 MB, free: 1.926 MB / 302.1 MB Notification: Performance of Templates: time 0.2313/0.3798, allocations: 3.054 MB / 371.5 MB, free: 25.08 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches