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.002128/0.002129, allocations: 108.9 kB / 17.16 MB, free: 6.082 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.002254/0.002254, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.126/2.126, allocations: 222.9 MB / 241.8 MB, free: 13.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002094/0.002094, allocations: 48.23 kB / 300.6 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1728, allocations: 49.44 MB / 350.1 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.007054/0.18, allocations: 2.904 MB / 353 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.1824, allocations: 0.7284 MB / 353.7 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000254/0.1827, allocations: 8 kB / 353.7 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002638/0.183, allocations: 35.69 kB / 353.7 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003129/0.1834, allocations: 79.38 kB / 353.8 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005647/0.184, allocations: 87.81 kB / 353.9 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007669/0.1847, allocations: 358.4 kB / 354.2 MB, free: 408 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003869/0.1851, allocations: 103.9 kB / 354.3 MB, free: 300 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.1854, allocations: 123.5 kB / 354.5 MB, free: 176 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.1857, allocations: 147.3 kB / 354.6 MB, free: 28 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.958e-05/0.1858, allocations: 24 kB / 354.6 MB, free: 4 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.1859, allocations: 20.05 kB / 354.7 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.186, allocations: 59.77 kB / 354.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002745/0.1863, allocations: 155.2 kB / 354.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003966/0.1868, allocations: 259.6 kB / 355.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1868, allocations: 4 kB / 355.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1868, allocations: 4 kB / 355.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.1868, allocations: 0 / 355.1 MB, free: 15.51 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.001665/0.1885, allocations: 0.6095 MB / 355.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.1886, allocations: 8.031 kB / 355.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.1887, allocations: 40.56 kB / 355.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004872/0.1892, allocations: 260.3 kB / 356 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.1894, allocations: 76.62 kB / 356.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.601e-05/0.1895, allocations: 32.36 kB / 356.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008906/0.1904, allocations: 297.8 kB / 356.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.1904, allocations: 0 / 356.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.723e-05/0.1905, allocations: 12 kB / 356.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.426e-05/0.1905, allocations: 12 kB / 356.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006719/0.1912, allocations: 198.1 kB / 356.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003243/0.1945, allocations: 1.123 MB / 357.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005935/0.1951, allocations: 150.6 kB / 357.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.1954, allocations: 88.81 kB / 358 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.558e-05/0.1955, allocations: 0 / 358 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004895/0.196, allocations: 161 kB / 358.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 4.929e-06/0.196, allocations: 4 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001862/0.1979, allocations: 387.1 kB / 358.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.198, allocations: 106.8 kB / 358.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004093/0.1984, allocations: 221 kB / 358.9 MB, free: 11.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.913e-05/0.1985, allocations: 33.7 kB / 358.9 MB, free: 11.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.1988, allocations: 184.1 kB / 359.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.85e-05/0.1989, allocations: 66.95 kB / 359.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.1991, allocations: 61.69 kB / 359.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.1993, allocations: 342.8 kB / 359.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.1996, allocations: 55.98 kB / 359.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003535/0.1999, allocations: 144.6 kB / 359.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005277/0.2005, allocations: 188.2 kB / 359.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2005, allocations: 4 kB / 359.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009229/0.2014, allocations: 284.3 kB / 360.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.2015, allocations: 4 kB / 360.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.2015, allocations: 0 / 360.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004817/0.202, allocations: 65.03 kB / 360.3 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004019/0.2024, allocations: 47.92 kB / 360.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002628/0.2051, allocations: 1.401 MB / 361.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/0.2056, allocations: 39.7 kB / 361.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.251e-05/0.2057, allocations: 8 kB / 361.8 MB, free: 8.355 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.0003195/0.206, allocations: 153.9 kB / 361.9 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.601e-05/0.2061, allocations: 23.75 kB / 361.9 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.204e-05/0.2062, allocations: 22.19 kB / 362 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.2062, allocations: 4 kB / 362 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2062, allocations: 0 / 362 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.2063, allocations: 3.984 kB / 362 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006194/0.2069, allocations: 321.4 kB / 362.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.2069, allocations: 0 / 362.3 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000345/0.2073, allocations: 39.86 kB / 362.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003621/0.2077, allocations: 48.81 kB / 362.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.195e-05/0.2077, allocations: 12 kB / 362.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/0.2097, allocations: 1.323 MB / 363.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2098, allocations: 3.938 kB / 363.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.2111, allocations: 330.9 kB / 364 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.2113, allocations: 108.8 kB / 364.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.445e-05/0.2114, allocations: 7.984 kB / 364.1 MB, free: 5.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003464/0.2118, allocations: 19.98 kB / 364.2 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.2119, allocations: 31.89 kB / 364.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/0.212, allocations: 7.938 kB / 364.2 MB, free: 5.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000295/0.2123, allocations: 168.5 kB / 364.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2123, allocations: 0 / 364.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007528/0.2131, allocations: 79.84 kB / 364.4 MB, free: 5.438 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.0002269/0.2133, allocations: 107.2 kB / 364.5 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00108/0.2144, allocations: 286.5 kB / 364.8 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.2145, allocations: 448 / 364.8 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005999/0.2151, allocations: 190.6 kB / 365 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006049/0.2157, allocations: 40.3 kB / 365.1 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.2189, allocations: 0.7885 MB / 365.8 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000502/0.2194, allocations: 0.7599 MB / 366.6 MB, free: 3.188 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.2195, allocations: 23.44 kB / 366.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2195, allocations: 0 / 366.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of Templates: time 0.2826/0.5021, allocations: 4.16 MB / 370.8 MB, free: 24.99 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 -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