Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00099/0.0009897, allocations: 90.03 kB / 16.65 MB, free: 6.582 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.0009515/0.0009515, allocations: 180.2 kB / 17.56 MB, free: 6.188 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.582/1.582, allocations: 223.3 MB / 241.6 MB, free: 14.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004298/0.00043, allocations: 8 kB / 301.4 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1711, allocations: 50.43 MB / 351.8 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.0039/0.1751, allocations: 2.782 MB / 354.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1764, allocations: 0.744 MB / 355.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000155/0.1766, allocations: 4 kB / 355.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.1768, allocations: 43.67 kB / 355.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001811/0.177, allocations: 91.23 kB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003429/0.1773, allocations: 87.86 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.1777, allocations: 394.2 kB / 356 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.178, allocations: 124.1 kB / 356.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000205/0.1782, allocations: 139.4 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001958/0.1784, allocations: 155.2 kB / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.086e-05/0.1785, allocations: 20 kB / 356.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.477e-05/0.1785, allocations: 20 kB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.129e-05/0.1786, allocations: 59.7 kB / 356.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.1788, allocations: 196.8 kB / 356.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.1792, allocations: 394.7 kB / 357.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1792, allocations: 0 / 357.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1792, allocations: 0 / 357.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1792, allocations: 0 / 357.1 MB, free: 14.18 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001107/0.1803, allocations: 0.6004 MB / 357.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.1804, allocations: 8.031 kB / 357.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.1805, allocations: 40.47 kB / 357.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.1809, allocations: 281.2 kB / 358 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.181, allocations: 80.61 kB / 358.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.498e-05/0.1811, allocations: 36.36 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005917/0.1817, allocations: 346.8 kB / 358.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1817, allocations: 0 / 358.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.232e-05/0.1818, allocations: 20 kB / 358.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.1818, allocations: 8 kB / 358.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004451/0.1822, allocations: 226.5 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.1843, allocations: 1.383 MB / 360.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.1846, allocations: 166.5 kB / 360.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.1848, allocations: 96.77 kB / 360.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.1848, allocations: 4 kB / 360.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003229/0.1852, allocations: 153.1 kB / 360.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.1852, allocations: 3.938 kB / 360.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001219/0.1864, allocations: 423.1 kB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.23e-05/0.1865, allocations: 110.8 kB / 361 MB, free: 9.926 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.1868, allocations: 266.6 kB / 361.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.1869, allocations: 29.7 kB / 361.3 MB, free: 9.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.187, allocations: 207.9 kB / 361.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.949e-05/0.1871, allocations: 67.09 kB / 361.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.597e-05/0.1872, allocations: 29.7 kB / 361.6 MB, free: 9.316 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1873, allocations: 338.8 kB / 361.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.1875, allocations: 84.62 kB / 362 MB, free: 8.895 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/0.1877, allocations: 175.6 kB / 362.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004008/0.1882, allocations: 248.5 kB / 362.4 MB, free: 8.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1882, allocations: 0 / 362.4 MB, free: 8.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006982/0.1889, allocations: 360 kB / 362.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.1889, allocations: 4.344 kB / 362.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.1889, allocations: 8 kB / 362.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003279/0.1893, allocations: 52.81 kB / 362.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002617/0.1895, allocations: 63.91 kB / 362.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/0.1911, allocations: 1.412 MB / 364.3 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002676/0.1913, allocations: 47.67 kB / 364.4 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.1914, allocations: 12 kB / 364.4 MB, free: 6.312 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001976/0.1916, allocations: 149.7 kB / 364.5 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.1916, allocations: 27.72 kB / 364.5 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.861e-05/0.1917, allocations: 34.23 kB / 364.6 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1917, allocations: 4 kB / 364.6 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1917, allocations: 3.938 kB / 364.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1917, allocations: 3.984 kB / 364.6 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003662/0.1921, allocations: 341.3 kB / 364.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1921, allocations: 0 / 364.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.1923, allocations: 35.97 kB / 365 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001878/0.1925, allocations: 60.81 kB / 365 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.586e-05/0.1925, allocations: 0 / 365 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/0.1937, allocations: 1.336 MB / 366.4 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1937, allocations: 4.031 kB / 366.4 MB, free: 4.133 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000734/0.1945, allocations: 358.8 kB / 366.7 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.1946, allocations: 120.6 kB / 366.8 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.1946, allocations: 4 kB / 366.8 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.1948, allocations: 31.98 kB / 366.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.873e-05/0.1949, allocations: 35.92 kB / 366.9 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.195, allocations: 4 kB / 366.9 MB, free: 3.551 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.1951, allocations: 182 kB / 367.1 MB, free: 3.375 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1951, allocations: 0 / 367.1 MB, free: 3.375 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003818/0.1955, allocations: 83.84 kB / 367.2 MB, free: 3.293 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000136/0.1957, allocations: 111.2 kB / 367.3 MB, free: 3.172 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006072/0.1963, allocations: 316.6 kB / 367.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1963, allocations: 0 / 367.6 MB, free: 2.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.1966, allocations: 199.3 kB / 367.8 MB, free: 2.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.1969, allocations: 39.47 kB / 367.8 MB, free: 2.605 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.1985, allocations: 0.8596 MB / 368.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004016/0.1989, allocations: 0.7755 MB / 369.4 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.1991, allocations: 26.28 kB / 369.5 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.103e-05/0.1991, allocations: 23.44 kB / 369.5 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1991, allocations: 0 / 369.5 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of Templates: time 0.2178/0.4169, allocations: 2.766 MB / 372.3 MB, free: 23.71 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches