Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009372/0.0009372, allocations: 184.1 kB / 18.04 MB, free: 3.781 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.407/1.407, allocations: 205.4 MB / 224.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007189/0.0007188, allocations: 89.34 kB / 272.5 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004549/0.000455, allocations: 12 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2796, allocations: 47.57 MB / 377 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09602/0.3757, allocations: 78.13 MB / 455.2 MB, free: 2.43 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.376, allocations: 71.97 kB / 455.2 MB, free: 2.359 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01457/0.3906, allocations: 5.424 MB / 460.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3906, allocations: 0 / 460.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.639e-05/0.3906, allocations: 12 kB / 460.7 MB, free: 12.9 MB / 346.7 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.000974/0.3916, allocations: 0.5605 MB / 461.2 MB, free: 12.29 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.3917, allocations: 8.031 kB / 461.2 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.948e-05/0.3918, allocations: 36.56 kB / 461.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.3921, allocations: 255.8 kB / 461.5 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.3922, allocations: 76.62 kB / 461.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-05/0.3923, allocations: 28.38 kB / 461.6 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004801/0.3928, allocations: 294.2 kB / 461.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.3928, allocations: 7.938 kB / 461.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.3929, allocations: 8 kB / 461.9 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.3929, allocations: 12 kB / 461.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003376/0.3932, allocations: 190.2 kB / 462.1 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.395, allocations: 1.143 MB / 463.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002834/0.3953, allocations: 150.8 kB / 463.4 MB, free: 9.949 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.3954, allocations: 80.83 kB / 463.5 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.3955, allocations: 7.875 kB / 463.5 MB, free: 9.859 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003022/0.3958, allocations: 169.9 kB / 463.7 MB, free: 9.676 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.944e-06/0.3958, allocations: 0 / 463.7 MB, free: 9.676 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.001003/0.3968, allocations: 387.2 kB / 464 MB, free: 9.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.714e-05/0.3969, allocations: 114.8 kB / 464.1 MB, free: 9.133 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.3971, allocations: 220.9 kB / 464.4 MB, free: 8.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.3972, allocations: 33.7 kB / 464.4 MB, free: 8.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.3973, allocations: 172.2 kB / 464.6 MB, free: 8.699 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.084e-05/0.3974, allocations: 71.08 kB / 464.6 MB, free: 8.629 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/0.3974, allocations: 4 kB / 464.6 MB, free: 8.625 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.3975, allocations: 342.8 kB / 465 MB, free: 8.281 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.3977, allocations: 60.55 kB / 465 MB, free: 8.219 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.3978, allocations: 124.2 kB / 465.2 MB, free: 8.074 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002474/0.3981, allocations: 174.4 kB / 465.3 MB, free: 7.887 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3981, allocations: 0 / 465.3 MB, free: 7.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003953/0.3985, allocations: 256 kB / 465.6 MB, free: 7.629 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.3985, allocations: 4 kB / 465.6 MB, free: 7.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3985, allocations: 12.14 kB / 465.6 MB, free: 7.613 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00026/0.3988, allocations: 52.81 kB / 465.6 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.399, allocations: 51.91 kB / 465.7 MB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.4002, allocations: 1.406 MB / 467.1 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002257/0.4005, allocations: 43.83 kB / 467.1 MB, free: 5.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.4005, allocations: 8 kB / 467.1 MB, free: 5.918 MB / 346.7 MB 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 () * Number of clocked 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.0001452/0.4007, allocations: 146.7 kB / 467.3 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.358e-05/0.4007, allocations: 19.81 kB / 467.3 MB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.939e-05/0.4008, allocations: 30.11 kB / 467.3 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.4008, allocations: 4 kB / 467.3 MB, free: 5.711 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.4008, allocations: 0 / 467.3 MB, free: 5.711 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.4008, allocations: 4 kB / 467.3 MB, free: 5.707 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003116/0.4011, allocations: 321.3 kB / 467.7 MB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4011, allocations: 0 / 467.7 MB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.4013, allocations: 31.98 kB / 467.7 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001786/0.4015, allocations: 60.69 kB / 467.7 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.4015, allocations: 8 kB / 467.8 MB, free: 5.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.4026, allocations: 1.323 MB / 469.1 MB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4026, allocations: 3.984 kB / 469.1 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006133/0.4032, allocations: 329.5 kB / 469.4 MB, free: 3.434 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.702e-05/0.4033, allocations: 112.8 kB / 469.5 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.4034, allocations: 8 kB / 469.5 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.4036, allocations: 15.98 kB / 469.5 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.716e-05/0.4036, allocations: 31.94 kB / 469.6 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.4037, allocations: 8 kB / 469.6 MB, free: 3.242 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000138/0.4038, allocations: 172.5 kB / 469.7 MB, free: 3.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4038, allocations: 0 / 469.7 MB, free: 3.07 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003695/0.4042, allocations: 83.78 kB / 469.8 MB, free: 2.988 MB / 346.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: 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 (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.0001573/0.4044, allocations: 123.1 kB / 469.9 MB, free: 2.855 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005083/0.4049, allocations: 272 kB / 470.2 MB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4049, allocations: 320 / 470.2 MB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002594/0.4052, allocations: 194.6 kB / 470.4 MB, free: 2.375 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.4055, allocations: 44.3 kB / 470.4 MB, free: 2.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.4071, allocations: 0.8142 MB / 471.3 MB, free: 1.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.4075, allocations: 0.7557 MB / 472 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001212/0.4076, allocations: 29.92 kB / 472 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.53e-05/0.4077, allocations: 19.44 kB / 472.1 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4077, allocations: 0 / 472.1 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of Templates: time 0.006738/0.4144, allocations: 2.785 MB / 474.9 MB, free: 13.91 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches