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.0008781/0.0008781, allocations: 91.19 kB / 17.31 MB, free: 5.59 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.0011/0.0011, allocations: 178.8 kB / 18.21 MB, free: 5.191 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.307/1.307, allocations: 223.2 MB / 242.2 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002282/0.0002282, allocations: 7.938 kB / 302.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07532/0.07556, allocations: 50.41 MB / 352.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002841/0.07842, allocations: 2.79 MB / 355.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.07956, allocations: 0.7401 MB / 356 MB, free: 172 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.07973, allocations: 7.938 kB / 356 MB, free: 164 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.07987, allocations: 47.67 kB / 356.1 MB, free: 116 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000188/0.08007, allocations: 87.25 kB / 356.2 MB, free: 28 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.08039, allocations: 87.91 kB / 356.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003938/0.08079, allocations: 394.2 kB / 356.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002105/0.08101, allocations: 132 kB / 356.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.0812, allocations: 143.4 kB / 356.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.0814, allocations: 155.2 kB / 357 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.531e-05/0.08145, allocations: 16 kB / 357.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.93e-05/0.0815, allocations: 20 kB / 357.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.845e-05/0.08157, allocations: 63.75 kB / 357.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.08173, allocations: 188.8 kB / 357.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000254/0.08199, allocations: 303.4 kB / 357.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.082, allocations: 0 / 357.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.82e-07/0.08201, allocations: 0 / 357.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.08202, allocations: 4 kB / 357.6 MB, free: 14.54 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.0008935/0.08292, allocations: 0.6003 MB / 358.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.08296, allocations: 8.031 kB / 358.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.542e-05/0.08304, allocations: 40.47 kB / 358.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002896/0.08334, allocations: 285.2 kB / 358.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.762e-05/0.08343, allocations: 80.62 kB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.175e-05/0.08349, allocations: 32.31 kB / 358.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005463/0.08404, allocations: 346.9 kB / 359 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.08406, allocations: 0 / 359 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.61e-05/0.0841, allocations: 16 kB / 359 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.08412, allocations: 8 kB / 359 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004339/0.08455, allocations: 218.5 kB / 359.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.08636, allocations: 1.391 MB / 360.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003228/0.0867, allocations: 170.1 kB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.08688, allocations: 96.7 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.08691, allocations: 4 kB / 360.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002703/0.08719, allocations: 165 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.0872, allocations: 0 / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001115/0.08832, allocations: 419.1 kB / 361.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.08839, allocations: 114.8 kB / 361.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.08865, allocations: 262.6 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.08869, allocations: 29.7 kB / 361.9 MB, free: 9.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.08881, allocations: 203.9 kB / 362.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.853e-05/0.08888, allocations: 67.09 kB / 362.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.08893, allocations: 33.7 kB / 362.2 MB, free: 9.676 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.08904, allocations: 334.8 kB / 362.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.08921, allocations: 80.61 kB / 362.6 MB, free: 9.262 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.08945, allocations: 173.5 kB / 362.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.08981, allocations: 252.5 kB / 363 MB, free: 8.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.08982, allocations: 0 / 363 MB, free: 8.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006973/0.09052, allocations: 356.2 kB / 363.3 MB, free: 8.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.09055, allocations: 11.94 kB / 363.3 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.09056, allocations: 4 kB / 363.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002519/0.09082, allocations: 57 kB / 363.4 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.09109, allocations: 71.84 kB / 363.5 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.09227, allocations: 1.408 MB / 364.9 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.09255, allocations: 51.8 kB / 364.9 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.09258, allocations: 12 kB / 364.9 MB, free: 6.664 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.0001386/0.09273, allocations: 149.7 kB / 365.1 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.09278, allocations: 23.72 kB / 365.1 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/0.09284, allocations: 34.17 kB / 365.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.09285, allocations: 3.984 kB / 365.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.09286, allocations: 11.94 kB / 365.2 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.09286, allocations: 0 / 365.2 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003056/0.09318, allocations: 333.4 kB / 365.5 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.09319, allocations: 4 kB / 365.5 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.09339, allocations: 39.92 kB / 365.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001851/0.09359, allocations: 52.81 kB / 365.6 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.09362, allocations: 11.98 kB / 365.6 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.09464, allocations: 1.324 MB / 366.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.09465, allocations: 0 / 366.9 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007068/0.09536, allocations: 358.5 kB / 367.3 MB, free: 4.129 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.824e-05/0.09547, allocations: 124.7 kB / 367.4 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.09552, allocations: 8 kB / 367.4 MB, free: 3.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.09571, allocations: 23.98 kB / 367.4 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.381e-05/0.0958, allocations: 32.02 kB / 367.5 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.09582, allocations: 7.984 kB / 367.5 MB, free: 3.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001606/0.09598, allocations: 182 kB / 367.6 MB, free: 3.742 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09599, allocations: 3.938 kB / 367.6 MB, free: 3.738 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003715/0.09637, allocations: 87.84 kB / 367.7 MB, free: 3.652 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 9.188e-05/0.09647, allocations: 103.2 kB / 367.8 MB, free: 3.539 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005595/0.09704, allocations: 324.7 kB / 368.1 MB, free: 3.211 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/0.09706, allocations: 0 / 368.1 MB, free: 3.211 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000288/0.09736, allocations: 198.5 kB / 368.3 MB, free: 3.004 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002733/0.09764, allocations: 39.84 kB / 368.4 MB, free: 2.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.09911, allocations: 0.9003 MB / 369.3 MB, free: 2.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002897/0.09942, allocations: 0.7716 MB / 370.1 MB, free: 1.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.772e-05/0.09949, allocations: 23.44 kB / 370.1 MB, free: 1.207 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.0995, allocations: 0 / 370.1 MB, free: 1.207 MB / 302.1 MB Notification: Performance of Templates: time 0.1303/0.2298, allocations: 4.557 MB / 374.6 MB, free: 23.8 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/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