Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001273/0.001273, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.1 MB / 223.7 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000911/0.000911, allocations: 101.1 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007265/0.0007265, allocations: 43.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1865, allocations: 46.61 MB / 373.8 MB, free: 45.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00339/0.1899, allocations: 2.874 MB / 376.7 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.191, allocations: 0.7606 MB / 377.5 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.1912, allocations: 5.062 kB / 377.5 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.1914, allocations: 36.41 kB / 377.5 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.1915, allocations: 80.69 kB / 377.6 MB, free: 42.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002608/0.1918, allocations: 93.97 kB / 377.7 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002697/0.1921, allocations: 362.3 kB / 378 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.1922, allocations: 97.66 kB / 378.1 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001057/0.1923, allocations: 125.9 kB / 378.2 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.1925, allocations: 143.3 kB / 378.4 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.626e-05/0.1925, allocations: 21.19 kB / 378.4 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.912e-05/0.1926, allocations: 20.94 kB / 378.4 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.616e-05/0.1926, allocations: 72.98 kB / 378.5 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.1928, allocations: 149.9 kB / 378.6 MB, free: 42.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.193, allocations: 345.4 kB / 379 MB, free: 41.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.193, allocations: 3.938 kB / 379 MB, free: 41.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.193, allocations: 0 / 379 MB, free: 41.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.193, allocations: 1.406 kB / 379 MB, free: 41.93 MB / 298.7 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.0007716/0.1938, allocations: 0.6057 MB / 379.6 MB, free: 41.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.1938, allocations: 9.562 kB / 379.6 MB, free: 41.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.609e-05/0.1939, allocations: 34.84 kB / 379.6 MB, free: 41.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002202/0.1941, allocations: 263.8 kB / 379.9 MB, free: 41.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.193e-05/0.1942, allocations: 78.59 kB / 380 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.157e-05/0.1942, allocations: 35.33 kB / 380 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003741/0.1946, allocations: 294.3 kB / 380.3 MB, free: 40.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1946, allocations: 0 / 380.3 MB, free: 40.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.1947, allocations: 12.06 kB / 380.3 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.1947, allocations: 10.64 kB / 380.3 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002838/0.195, allocations: 194.5 kB / 380.5 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.1963, allocations: 1.128 MB / 381.6 MB, free: 39.74 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.1965, allocations: 156.5 kB / 381.8 MB, free: 39.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.1966, allocations: 80.84 kB / 381.9 MB, free: 39.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.1967, allocations: 0.9688 kB / 381.9 MB, free: 39.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002146/0.1969, allocations: 167.5 kB / 382 MB, free: 39.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.1969, allocations: 0 / 382 MB, free: 39.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008748/0.1978, allocations: 390.2 kB / 382.4 MB, free: 39.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/0.1978, allocations: 109.4 kB / 382.5 MB, free: 39.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001634/0.198, allocations: 227.4 kB / 382.7 MB, free: 38.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.198, allocations: 32.2 kB / 382.8 MB, free: 38.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.27e-05/0.1981, allocations: 174.2 kB / 382.9 MB, free: 38.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.62e-05/0.1981, allocations: 68.06 kB / 383 MB, free: 38.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.433e-05/0.1982, allocations: 65.28 kB / 383.1 MB, free: 38.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.331e-05/0.1982, allocations: 340.2 kB / 383.4 MB, free: 38.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.1984, allocations: 62.77 kB / 383.5 MB, free: 38.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.1985, allocations: 147.5 kB / 383.6 MB, free: 38.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00021/0.1987, allocations: 189.2 kB / 383.8 MB, free: 37.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1987, allocations: 0 / 383.8 MB, free: 37.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003612/0.1991, allocations: 277.3 kB / 384.1 MB, free: 37.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.1991, allocations: 5.25 kB / 384.1 MB, free: 37.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1991, allocations: 2.219 kB / 384.1 MB, free: 37.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002264/0.1993, allocations: 58.16 kB / 384.1 MB, free: 37.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.1996, allocations: 52.77 kB / 384.2 MB, free: 37.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008241/0.2004, allocations: 1.407 MB / 385.6 MB, free: 36.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.2006, allocations: 30.11 kB / 385.6 MB, free: 36.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.2006, allocations: 8.375 kB / 385.6 MB, free: 36.32 MB / 298.7 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.0001057/0.2007, allocations: 153.2 kB / 385.8 MB, free: 36.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.121e-05/0.2008, allocations: 36.06 kB / 385.8 MB, free: 36.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.102e-05/0.2008, allocations: 22.38 kB / 385.8 MB, free: 36.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2008, allocations: 2.438 kB / 385.8 MB, free: 36.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.2008, allocations: 1.406 kB / 385.8 MB, free: 36.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2009, allocations: 3.984 kB / 385.8 MB, free: 36.13 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.2011, allocations: 316.9 kB / 386.1 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2011, allocations: 0 / 386.1 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001497/0.2012, allocations: 38.86 kB / 386.2 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001617/0.2014, allocations: 51.75 kB / 386.2 MB, free: 35.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.2014, allocations: 5.531 kB / 386.2 MB, free: 35.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007052/0.2021, allocations: 1.323 MB / 387.6 MB, free: 34.42 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2022, allocations: 0 / 387.6 MB, free: 34.42 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004714/0.2069, allocations: 2.397 MB / 390 MB, free: 32.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.945e-05/0.207, allocations: 108.8 kB / 390.1 MB, free: 32.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.877e-05/0.207, allocations: 7.938 kB / 390.1 MB, free: 32.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.2071, allocations: 19.98 kB / 390.1 MB, free: 32.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.91e-05/0.2072, allocations: 27.95 kB / 390.1 MB, free: 32.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.2072, allocations: 7.984 kB / 390.1 MB, free: 32.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.8e-05/0.2073, allocations: 164.5 kB / 390.3 MB, free: 32.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2073, allocations: 0 / 390.3 MB, free: 32.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004223/0.2078, allocations: 111.7 kB / 390.4 MB, free: 32.06 MB / 298.7 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 8.573e-05/0.2079, allocations: 107.2 kB / 390.5 MB, free: 31.95 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003805/0.2082, allocations: 282.5 kB / 390.8 MB, free: 31.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2083, allocations: 448 / 390.8 MB, free: 31.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.2085, allocations: 198.6 kB / 391 MB, free: 31.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.2087, allocations: 35.05 kB / 391 MB, free: 31.42 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.21, allocations: 0.9461 MB / 391.9 MB, free: 30.44 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001249/0.2102, allocations: 0.7599 MB / 392.7 MB, free: 29.65 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.984e-05/0.2103, allocations: 26.28 kB / 392.7 MB, free: 29.63 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.255e-05/0.2103, allocations: 27.38 kB / 392.8 MB, free: 29.6 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2103, allocations: 0 / 392.8 MB, free: 29.6 MB / 298.7 MB Notification: Performance of Templates: time 0.005/0.2153, allocations: 3.35 MB / 396.1 MB, free: 26.28 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches