Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001068/0.001068, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.162/1.162, allocations: 227.2 MB / 245 MB, free: 5.758 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008263/0.0008262, allocations: 106.6 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001995/0.0001995, allocations: 4 kB / 357.9 MB, free: 9.312 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2026, allocations: 51.48 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.093/0.2956, allocations: 81.19 MB / 490.6 MB, free: 9.422 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.2959, allocations: 71.97 kB / 490.7 MB, free: 9.352 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01628/0.3122, allocations: 6.421 MB / 497.1 MB, free: 2.906 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3122, allocations: 4 kB / 497.1 MB, free: 2.902 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2e-05/0.3123, allocations: 8 kB / 497.1 MB, free: 2.895 MB / 362.7 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.0009095/0.3132, allocations: 0.6094 MB / 497.7 MB, free: 2.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3132, allocations: 12.03 kB / 497.7 MB, free: 2.219 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.3134, allocations: 55.52 kB / 497.8 MB, free: 2.164 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.3137, allocations: 267.8 kB / 498 MB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.28e-05/0.3138, allocations: 80.05 kB / 498.1 MB, free: 1.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.898e-05/0.3139, allocations: 35.91 kB / 498.2 MB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005103/0.3144, allocations: 326.9 kB / 498.5 MB, free: 1.402 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.3144, allocations: 3.938 kB / 498.5 MB, free: 1.398 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.199e-05/0.3145, allocations: 20 kB / 498.5 MB, free: 1.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.3145, allocations: 8 kB / 498.5 MB, free: 1.371 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.3149, allocations: 214.5 kB / 498.7 MB, free: 1.156 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.3166, allocations: 1.387 MB / 0.4884 GB, free: 15.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.317, allocations: 178.3 kB / 0.4886 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.317, allocations: 0 / 0.4886 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000271/0.3173, allocations: 166.7 kB / 0.4887 GB, free: 15.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.693e-06/0.3173, allocations: 4 kB / 0.4887 GB, free: 15.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.00105/0.3183, allocations: 413.4 kB / 0.4891 GB, free: 14.87 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.732e-05/0.3184, allocations: 110.8 kB / 0.4892 GB, free: 14.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.3186, allocations: 225.8 kB / 0.4894 GB, free: 14.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.3187, allocations: 33.7 kB / 0.4895 GB, free: 14.47 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.3188, allocations: 204 kB / 0.4897 GB, free: 14.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.987e-05/0.3189, allocations: 71 kB / 0.4897 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.3189, allocations: 15.94 kB / 0.4897 GB, free: 14.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.319, allocations: 339.1 kB / 0.4901 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.3191, allocations: 79.91 kB / 0.4901 GB, free: 13.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.3193, allocations: 158.5 kB / 0.4903 GB, free: 13.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.3195, allocations: 89.19 kB / 0.4904 GB, free: 13.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3195, allocations: 7.875 kB / 0.4904 GB, free: 13.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006214/0.3202, allocations: 328.7 kB / 0.4907 GB, free: 13.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.3202, allocations: 4 kB / 0.4907 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3202, allocations: 4 kB / 0.4907 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000239/0.3204, allocations: 60.97 kB / 0.4908 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002414/0.3207, allocations: 59.91 kB / 0.4908 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/0.3219, allocations: 1.416 MB / 0.4922 GB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.3221, allocations: 43.67 kB / 0.4922 GB, free: 11.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.385e-05/0.3222, allocations: 12 kB / 0.4923 GB, free: 11.42 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$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 (36): * Single equations (assignments): 35 * 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.0001487/0.3223, allocations: 153.9 kB / 0.4924 GB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.3224, allocations: 35.61 kB / 0.4924 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.913e-05/0.3224, allocations: 26.19 kB / 0.4925 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3224, allocations: 4 kB / 0.4925 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3224, allocations: 7.938 kB / 0.4925 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3225, allocations: 3.984 kB / 0.4925 GB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.3228, allocations: 341.4 kB / 0.4928 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3228, allocations: 0 / 0.4928 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.323, allocations: 35.98 kB / 0.4928 GB, free: 10.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001735/0.3232, allocations: 52.81 kB / 0.4929 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.3232, allocations: 4 kB / 0.4929 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.3242, allocations: 1.331 MB / 0.4942 GB, free: 9.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3242, allocations: 4.203 kB / 0.4942 GB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006573/0.3249, allocations: 360.4 kB / 0.4945 GB, free: 8.863 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.325, allocations: 116.9 kB / 0.4946 GB, free: 8.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.663e-05/0.3251, allocations: 8 kB / 0.4947 GB, free: 8.723 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.3252, allocations: 19.98 kB / 0.4947 GB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.875e-05/0.3253, allocations: 35.84 kB / 0.4947 GB, free: 8.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.3253, allocations: 7.984 kB / 0.4947 GB, free: 8.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001535/0.3255, allocations: 186 kB / 0.4949 GB, free: 8.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3255, allocations: 4 kB / 0.4949 GB, free: 8.477 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003598/0.3259, allocations: 91.78 kB / 0.495 GB, free: 8.387 MB / 378.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: 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 (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 0.0001453/0.326, allocations: 111.2 kB / 0.4951 GB, free: 8.266 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005394/0.3266, allocations: 306.8 kB / 0.4954 GB, free: 7.953 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3266, allocations: 4.188 kB / 0.4954 GB, free: 7.949 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002853/0.3269, allocations: 206.5 kB / 0.4956 GB, free: 7.734 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.3271, allocations: 41.64 kB / 0.4956 GB, free: 7.695 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.3285, allocations: 0.8304 MB / 0.4964 GB, free: 6.844 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.3288, allocations: 0.7794 MB / 0.4972 GB, free: 6.035 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.3289, allocations: 26.28 kB / 0.4972 GB, free: 6.012 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.39e-05/0.329, allocations: 19.44 kB / 0.4972 GB, free: 5.992 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.329, allocations: 0 / 0.4972 GB, free: 5.992 MB / 378.7 MB Notification: Performance of Templates: time 0.005827/0.3348, allocations: 2.778 MB / 0.5 GB, free: 3.25 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches