Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001455/0.001455, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.062/2.062, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 95.05 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.023e-05/3.034e-05, allocations: 4 kB / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3295, allocations: 47.56 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.4752, allocations: 77.33 MB / 439.7 MB, free: 8.992 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.4755, allocations: 67.97 kB / 439.7 MB, free: 8.926 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02385/0.4994, allocations: 5.365 MB / 445.1 MB, free: 3.59 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4994, allocations: 0 / 445.1 MB, free: 3.59 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.483e-05/0.4995, allocations: 11.98 kB / 445.1 MB, free: 3.578 MB / 331.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.001293/0.5008, allocations: 0.5355 MB / 445.6 MB, free: 3.004 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.5008, allocations: 16.03 kB / 445.7 MB, free: 2.988 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.501, allocations: 31.62 kB / 445.7 MB, free: 2.957 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004383/0.5014, allocations: 258.4 kB / 445.9 MB, free: 2.664 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.5015, allocations: 68.14 kB / 446 MB, free: 2.586 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.253e-05/0.5016, allocations: 16 kB / 446 MB, free: 2.57 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005397/0.5022, allocations: 170.4 kB / 446.2 MB, free: 2.402 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006306/0.5028, allocations: 249.9 kB / 446.4 MB, free: 2.145 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.5028, allocations: 4 kB / 446.4 MB, free: 2.141 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.755e-05/0.5029, allocations: 224 / 446.4 MB, free: 2.141 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.5029, allocations: 8 kB / 446.4 MB, free: 2.133 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002585/0.5055, allocations: 1.072 MB / 447.5 MB, free: 0.9922 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004029/0.5059, allocations: 142.6 kB / 447.7 MB, free: 0.8438 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.5062, allocations: 64.86 kB / 447.7 MB, free: 0.7773 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.382e-05/0.5062, allocations: 8 kB / 447.7 MB, free: 0.7695 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003507/0.5066, allocations: 147.3 kB / 447.9 MB, free: 0.6016 MB / 331.1 MB Notification: Performance of pre-optimization done (n=21): time 2.635e-06/0.5066, allocations: 1.594 kB / 447.9 MB, free: 0.6016 MB / 331.1 MB Notification: Performance of matching and sorting (n=21): time 0.0008551/0.5075, allocations: 205 kB / 448.1 MB, free: 404 kB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.296e-05/0.5076, allocations: 114.8 kB / 448.2 MB, free: 264 kB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000283/0.5079, allocations: 159.6 kB / 448.3 MB, free: 96 kB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 4.246e-05/0.5079, allocations: 33.7 kB / 448.4 MB, free: 56 kB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.5081, allocations: 234.3 kB / 448.6 MB, free: 15.82 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.818e-05/0.5082, allocations: 67.09 kB / 448.7 MB, free: 15.76 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.578e-05/0.5082, allocations: 0 / 448.7 MB, free: 15.76 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5084, allocations: 322.8 kB / 449 MB, free: 15.43 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.5086, allocations: 52.56 kB / 449 MB, free: 15.38 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002445/0.5088, allocations: 123.9 kB / 449.2 MB, free: 15.23 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002038/0.5091, allocations: 62.08 kB / 449.2 MB, free: 15.18 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.5091, allocations: 0 / 449.2 MB, free: 15.18 MB / 347.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006216/0.5097, allocations: 228.4 kB / 449.4 MB, free: 14.95 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.5098, allocations: 4 kB / 449.4 MB, free: 14.94 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.5098, allocations: 4 kB / 449.4 MB, free: 14.94 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003892/0.5102, allocations: 48.81 kB / 449.5 MB, free: 14.89 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/0.5106, allocations: 58.31 kB / 449.6 MB, free: 14.83 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0018/0.5124, allocations: 1.369 MB / 450.9 MB, free: 13.34 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003929/0.5128, allocations: 27.86 kB / 451 MB, free: 13.32 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.5129, allocations: 8 kB / 451 MB, free: 13.31 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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.0001959/0.5131, allocations: 109 kB / 451.1 MB, free: 13.2 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.389e-05/0.5131, allocations: 27.84 kB / 451.1 MB, free: 13.17 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.998e-05/0.5132, allocations: 25.91 kB / 451.1 MB, free: 13.14 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.198e-06/0.5132, allocations: 4 kB / 451.1 MB, free: 13.14 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.5133, allocations: 7.5 kB / 451.1 MB, free: 13.13 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.5133, allocations: 0 / 451.1 MB, free: 13.13 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004397/0.5137, allocations: 269.9 kB / 451.4 MB, free: 12.83 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.5137, allocations: 3.984 kB / 451.4 MB, free: 12.83 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003115/0.5141, allocations: 27.98 kB / 451.4 MB, free: 12.8 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003049/0.5144, allocations: 52.83 kB / 451.5 MB, free: 12.75 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.5144, allocations: 7.984 kB / 451.5 MB, free: 12.74 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.516, allocations: 1.272 MB / 452.8 MB, free: 11.35 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.5161, allocations: 3.953 kB / 452.8 MB, free: 11.35 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00098/0.5171, allocations: 307.9 kB / 453.1 MB, free: 11.03 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.5173, allocations: 108.9 kB / 453.2 MB, free: 10.9 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.5173, allocations: 0 / 453.2 MB, free: 10.9 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.5176, allocations: 15.98 kB / 453.2 MB, free: 10.89 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.5178, allocations: 39.95 kB / 453.2 MB, free: 10.85 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.5178, allocations: 11.94 kB / 453.2 MB, free: 10.84 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.000169/0.518, allocations: 135.3 kB / 453.4 MB, free: 10.7 MB / 347.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.518, allocations: 2.625 kB / 453.4 MB, free: 10.7 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005581/0.5186, allocations: 71.75 kB / 453.4 MB, free: 10.63 MB / 347.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) * 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 0.0002061/0.5188, allocations: 109.9 kB / 453.5 MB, free: 10.52 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.000735/0.5196, allocations: 262.5 kB / 453.8 MB, free: 10.25 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5196, allocations: 4.125 kB / 453.8 MB, free: 10.25 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004246/0.52, allocations: 185.6 kB / 454 MB, free: 10.06 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.5204, allocations: 15.98 kB / 454 MB, free: 10.04 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.5228, allocations: 0.5285 MB / 454.5 MB, free: 9.488 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004282/0.5232, allocations: 0.7672 MB / 455.3 MB, free: 8.695 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.5234, allocations: 19.44 kB / 455.3 MB, free: 8.676 MB / 347.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5234, allocations: 0 / 455.3 MB, free: 8.676 MB / 347.1 MB Notification: Performance of Templates: time 0.009699/0.5331, allocations: 3.855 MB / 459.2 MB, free: 4.855 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches