Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001785/0.001785, allocations: 114.6 kB / 18.5 MB, free: 4.562 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.002327/0.002327, allocations: 198.6 kB / 21.45 MB, free: 1.613 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.545/1.545, allocations: 230.2 MB / 254.5 MB, free: 15.39 MB / 206.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 63.89 kB / 373.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1236, allocations: 53.31 MB / 427.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004371/0.128, allocations: 2.897 MB / 430.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.1294, allocations: 0.7789 MB / 430.8 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.1296, allocations: 4 kB / 430.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.1298, allocations: 51.5 kB / 430.9 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.1299, allocations: 91.12 kB / 431 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003344/0.1303, allocations: 107.8 kB / 431.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004124/0.1307, allocations: 370.4 kB / 431.4 MB, free: 208 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.1309, allocations: 91.2 kB / 431.5 MB, free: 108 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.1311, allocations: 139.5 kB / 431.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.1313, allocations: 151.4 kB / 431.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.141e-05/0.1314, allocations: 32 kB / 431.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.406e-05/0.1314, allocations: 28 kB / 431.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.55e-05/0.1315, allocations: 75.69 kB / 432 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.1317, allocations: 163.2 kB / 432.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004367/0.1321, allocations: 366.5 kB / 432.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1321, allocations: 4 kB / 432.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1321, allocations: 0 / 432.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.1321, allocations: 0 / 432.5 MB, free: 15.16 MB / 366.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.001082/0.1332, allocations: 0.6092 MB / 433.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.1332, allocations: 12.03 kB / 433.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.735e-05/0.1333, allocations: 40.7 kB / 433.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.1337, allocations: 272.5 kB / 433.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.82e-05/0.1338, allocations: 76.62 kB / 433.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.211e-05/0.1339, allocations: 28.38 kB / 433.5 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005355/0.1344, allocations: 297.9 kB / 433.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.1344, allocations: 8 kB / 433.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.1345, allocations: 8 kB / 433.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.1345, allocations: 8 kB / 433.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003944/0.1349, allocations: 190.1 kB / 434 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.1367, allocations: 1.123 MB / 435.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.137, allocations: 146.6 kB / 435.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.1372, allocations: 76.83 kB / 435.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.1372, allocations: 0 / 435.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.1375, allocations: 164.8 kB / 435.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.213e-06/0.1375, allocations: 0 / 435.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.00111/0.1386, allocations: 379.7 kB / 435.9 MB, free: 11.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.561e-05/0.1387, allocations: 106.8 kB / 436 MB, free: 11.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002659/0.1389, allocations: 233 kB / 436.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.139, allocations: 29.7 kB / 436.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.1391, allocations: 188.5 kB / 436.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.635e-05/0.1392, allocations: 71.42 kB / 436.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001051/0.1393, allocations: 53.7 kB / 436.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1394, allocations: 338.8 kB / 436.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.1396, allocations: 67.91 kB / 436.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.1398, allocations: 148.6 kB / 437.1 MB, free: 10.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003009/0.1401, allocations: 192.1 kB / 437.3 MB, free: 9.992 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1401, allocations: 0 / 437.3 MB, free: 9.992 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004851/0.1405, allocations: 268.6 kB / 437.5 MB, free: 9.723 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1406, allocations: 14.06 kB / 437.6 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.1406, allocations: 4 kB / 437.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003004/0.1409, allocations: 64.95 kB / 437.6 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.1411, allocations: 55.91 kB / 437.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.1427, allocations: 1.561 MB / 439.2 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002505/0.143, allocations: 39.98 kB / 439.3 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.143, allocations: 8 kB / 439.3 MB, free: 7.84 MB / 366.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.0001637/0.1432, allocations: 145.7 kB / 439.4 MB, free: 7.688 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-05/0.1432, allocations: 27.86 kB / 439.5 MB, free: 7.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.236e-05/0.1433, allocations: 26.17 kB / 439.5 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1433, allocations: 4 kB / 439.5 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.1433, allocations: 4 kB / 439.5 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.1433, allocations: 0 / 439.5 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003736/0.1436, allocations: 329.3 kB / 439.8 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1436, allocations: 0 / 439.8 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.1438, allocations: 35.98 kB / 439.8 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001975/0.144, allocations: 48.75 kB / 439.9 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.144, allocations: 12 kB / 439.9 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.1454, allocations: 1.422 MB / 441.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1454, allocations: 0 / 441.3 MB, free: 5.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006901/0.1461, allocations: 324.3 kB / 441.6 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.1462, allocations: 117 kB / 441.8 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.435e-05/0.1463, allocations: 11.98 kB / 441.8 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.1465, allocations: 15.98 kB / 441.8 MB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.1466, allocations: 31.95 kB / 441.8 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.1466, allocations: 8 kB / 441.8 MB, free: 5.059 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001675/0.1468, allocations: 156.5 kB / 442 MB, free: 4.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1468, allocations: 0 / 442 MB, free: 4.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004125/0.1472, allocations: 83.84 kB / 442.1 MB, free: 4.828 MB / 366.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.0001779/0.1474, allocations: 117.9 kB / 442.2 MB, free: 4.707 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006507/0.148, allocations: 274.4 kB / 442.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.148, allocations: 0 / 442.4 MB, free: 4.426 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.1483, allocations: 194.5 kB / 442.6 MB, free: 4.223 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003319/0.1487, allocations: 36.8 kB / 442.7 MB, free: 4.188 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.1505, allocations: 0.6689 MB / 443.3 MB, free: 3.496 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.1509, allocations: 0.7634 MB / 444.1 MB, free: 2.707 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.151, allocations: 26.28 kB / 444.1 MB, free: 2.684 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.744e-05/0.1511, allocations: 19.44 kB / 444.1 MB, free: 2.664 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1511, allocations: 0 / 444.1 MB, free: 2.664 MB / 366.1 MB Notification: Performance of Templates: time 0.2218/0.3729, allocations: 3.111 MB / 447.3 MB, free: 24.2 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.093119629658759]