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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 178.6 kB / 17.04 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.187/1.187, allocations: 223.3 MB / 241 MB, free: 10.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007412/0.0007412, allocations: 95.19 kB / 292.2 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002281/0.000228, allocations: 11.94 kB / 351.8 MB, free: 15.12 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1862, allocations: 50.41 MB / 402.2 MB, free: 32.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.001998/0.1882, allocations: 2.427 MB / 404.6 MB, free: 30.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009932/0.1892, allocations: 0.6985 MB / 405.3 MB, free: 29.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.1894, allocations: 7.938 kB / 405.3 MB, free: 29.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.1896, allocations: 39.69 kB / 405.4 MB, free: 29.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.1897, allocations: 75.41 kB / 405.5 MB, free: 29.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002661/0.19, allocations: 71.94 kB / 405.5 MB, free: 29.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002349/0.1902, allocations: 346.3 kB / 405.9 MB, free: 28.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.1904, allocations: 92.48 kB / 405.9 MB, free: 28.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.1905, allocations: 111.6 kB / 406.1 MB, free: 28.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.1907, allocations: 127.5 kB / 406.2 MB, free: 28.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.1907, allocations: 16 kB / 406.2 MB, free: 28.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.268e-05/0.1907, allocations: 16 kB / 406.2 MB, free: 28.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.513e-05/0.1908, allocations: 59.75 kB / 406.3 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.482e-05/0.1908, allocations: 77.58 kB / 406.3 MB, free: 28.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.191, allocations: 256.8 kB / 406.6 MB, free: 28.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.191, allocations: 4 kB / 406.6 MB, free: 28.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.191, allocations: 0 / 406.6 MB, free: 28.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1911, allocations: 3.938 kB / 406.6 MB, free: 28.16 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.0007378/0.1918, allocations: 0.5665 MB / 407.2 MB, free: 27.55 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.858e-05/0.1918, allocations: 8.031 kB / 407.2 MB, free: 27.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.293e-05/0.1919, allocations: 35.58 kB / 407.2 MB, free: 27.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.1921, allocations: 259.2 kB / 407.5 MB, free: 27.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.336e-05/0.1922, allocations: 76.06 kB / 407.5 MB, free: 27.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.791e-05/0.1922, allocations: 39.97 kB / 407.6 MB, free: 27.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003888/0.1926, allocations: 293.7 kB / 407.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.1927, allocations: 0 / 407.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.1927, allocations: 12 kB / 407.9 MB, free: 26.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1927, allocations: 11.95 kB / 407.9 MB, free: 26.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000277/0.193, allocations: 186.2 kB / 408.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.1943, allocations: 1.147 MB / 409.2 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002281/0.1945, allocations: 146.6 kB / 409.4 MB, free: 25.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.1946, allocations: 84.83 kB / 409.4 MB, free: 25.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.1946, allocations: 0 / 409.4 MB, free: 25.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002241/0.1949, allocations: 162.6 kB / 409.6 MB, free: 24.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.292e-06/0.1949, allocations: 0 / 409.6 MB, free: 24.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008815/0.1958, allocations: 397.1 kB / 410 MB, free: 24.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.1958, allocations: 110.8 kB / 410.1 MB, free: 24.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.196, allocations: 225.3 kB / 410.3 MB, free: 24.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.196, allocations: 33.7 kB / 410.4 MB, free: 24.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.225e-05/0.1961, allocations: 184.1 kB / 410.5 MB, free: 23.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.1961, allocations: 63.16 kB / 410.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.107e-05/0.1961, allocations: 4 kB / 410.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.804e-05/0.1962, allocations: 342.8 kB / 410.9 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.1963, allocations: 59.97 kB / 411 MB, free: 23.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.1964, allocations: 140.8 kB / 411.1 MB, free: 23.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001175/0.1966, allocations: 78.75 kB / 411.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1966, allocations: 0 / 411.2 MB, free: 23.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003404/0.1969, allocations: 276.6 kB / 411.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.1969, allocations: 4 kB / 411.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.197, allocations: 4 kB / 411.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002397/0.1972, allocations: 61.03 kB / 411.5 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001928/0.1974, allocations: 55.84 kB / 411.6 MB, free: 22.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008734/0.1983, allocations: 1.409 MB / 413 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.1985, allocations: 39.67 kB / 413 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.1985, allocations: 16 kB / 413.1 MB, free: 21.23 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,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001055/0.1987, allocations: 142.5 kB / 413.2 MB, free: 21.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/0.1987, allocations: 19.81 kB / 413.2 MB, free: 21.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.54e-05/0.1987, allocations: 30.17 kB / 413.3 MB, free: 21.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1987, allocations: 11.89 kB / 413.3 MB, free: 21.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-06/0.1987, allocations: 0 / 413.3 MB, free: 21.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.1988, allocations: 0 / 413.3 MB, free: 21.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.199, allocations: 321.3 kB / 413.6 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.199, allocations: 0 / 413.6 MB, free: 20.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/0.1991, allocations: 31.98 kB / 413.6 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001657/0.1993, allocations: 60.75 kB / 413.7 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.1993, allocations: 0 / 413.7 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007086/0.2001, allocations: 1.335 MB / 415 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2001, allocations: 0 / 415 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005188/0.2006, allocations: 327.5 kB / 415.3 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.035e-05/0.2007, allocations: 116.8 kB / 415.4 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.2007, allocations: 0 / 415.4 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.2009, allocations: 32 kB / 415.5 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.464e-05/0.201, allocations: 31.94 kB / 415.5 MB, free: 18.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.201, allocations: 7.984 kB / 415.5 MB, free: 18.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.777e-05/0.2011, allocations: 156.5 kB / 415.7 MB, free: 18.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2011, allocations: 0 / 415.7 MB, free: 18.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003039/0.2014, allocations: 79.84 kB / 415.7 MB, free: 18.31 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 8.973e-05/0.2015, allocations: 111.2 kB / 415.8 MB, free: 18.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004213/0.2019, allocations: 290.5 kB / 416.1 MB, free: 17.9 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2019, allocations: 0 / 416.1 MB, free: 17.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002119/0.2022, allocations: 190.6 kB / 416.3 MB, free: 17.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.2024, allocations: 41.23 kB / 416.4 MB, free: 17.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.2037, allocations: 0.8399 MB / 417.2 MB, free: 16.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.2039, allocations: 0.7599 MB / 418 MB, free: 16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.204, allocations: 19.44 kB / 418 MB, free: 15.98 MB / 298.7 MB Notification: Performance of SimCode: time 2.81e-07/0.204, allocations: 0 / 418 MB, free: 15.98 MB / 298.7 MB Notification: Performance of Templates: time 0.004708/0.2087, allocations: 4.137 MB / 422.1 MB, free: 11.86 MB / 298.7 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 -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","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches