Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009939/0.000994, allocations: 177.1 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.239/1.239, allocations: 221.3 MB / 235.5 MB, free: 2.875 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007956/0.0007957, allocations: 89.67 kB / 286.5 MB, free: 168 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.613e-05/2.617e-05, allocations: 4 kB / 343.8 MB, free: 4.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09572, allocations: 50.42 MB / 394.3 MB, free: 1.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2885/0.3842, allocations: 79.35 MB / 473.6 MB, free: 8.156 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.3845, allocations: 71.8 kB / 473.7 MB, free: 8.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01518/0.3997, allocations: 5.612 MB / 479.3 MB, free: 2.461 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3997, allocations: 0 / 479.3 MB, free: 2.461 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.194e-05/0.3998, allocations: 8 kB / 479.3 MB, free: 2.453 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.0008601/0.4006, allocations: 0.5335 MB / 479.8 MB, free: 1.871 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.13e-05/0.4007, allocations: 8.031 kB / 479.8 MB, free: 1.863 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.505e-05/0.4008, allocations: 31.62 kB / 479.9 MB, free: 1.832 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.4011, allocations: 262.4 kB / 480.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.796e-05/0.4012, allocations: 72.19 kB / 480.2 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.958e-05/0.4012, allocations: 32 kB / 480.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004562/0.4017, allocations: 287.4 kB / 480.5 MB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.634e-05/0.4018, allocations: 7.953 kB / 480.5 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.4018, allocations: 11.98 kB / 480.5 MB, free: 1.105 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.4018, allocations: 8 kB / 480.5 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003105/0.4022, allocations: 178.2 kB / 480.7 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/0.4038, allocations: 1.139 MB / 481.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000287/0.4041, allocations: 158.5 kB / 482 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.4042, allocations: 80.84 kB / 482.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.4042, allocations: 0 / 482.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002717/0.4045, allocations: 155.6 kB / 482.2 MB, free: 15.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.4045, allocations: 0 / 482.2 MB, free: 15.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006237/0.4052, allocations: 224.7 kB / 482.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.4052, allocations: 114.8 kB / 482.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001841/0.4054, allocations: 200.8 kB / 482.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.4055, allocations: 29.7 kB / 482.8 MB, free: 14.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.4056, allocations: 172 kB / 483 MB, free: 14.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.669e-05/0.4056, allocations: 71.14 kB / 483 MB, free: 14.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/0.4056, allocations: 4 kB / 483 MB, free: 14.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.4058, allocations: 334.8 kB / 483.4 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/0.4059, allocations: 60.56 kB / 483.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.4061, allocations: 120.2 kB / 483.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.4062, allocations: 77.11 kB / 483.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4062, allocations: 0 / 483.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003847/0.4066, allocations: 252.2 kB / 483.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.4066, allocations: 17.02 kB / 483.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.4066, allocations: 4 kB / 483.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000264/0.4069, allocations: 48.83 kB / 483.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.4071, allocations: 51.91 kB / 484 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.4084, allocations: 1.405 MB / 485.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.4086, allocations: 43.7 kB / 485.4 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.4086, allocations: 19.97 kB / 485.4 MB, free: 11.84 MB / 362.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 () * 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 9.924e-05/0.4087, allocations: 124.8 kB / 485.6 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.4088, allocations: 23.72 kB / 485.6 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.026e-05/0.4088, allocations: 34 kB / 485.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.4088, allocations: 4 kB / 485.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.4089, allocations: 0 / 485.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.257e-06/0.4089, allocations: 0 / 485.6 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002944/0.4092, allocations: 313.4 kB / 485.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.4092, allocations: 0 / 485.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.4093, allocations: 35.98 kB / 486 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001767/0.4095, allocations: 56.75 kB / 486 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.4096, allocations: 7.984 kB / 486 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009973/0.4106, allocations: 1.328 MB / 487.4 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4106, allocations: 0 / 487.4 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005789/0.4112, allocations: 325.4 kB / 487.7 MB, free: 9.402 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.299e-05/0.4113, allocations: 112.8 kB / 487.8 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.4113, allocations: 7.953 kB / 487.8 MB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.4115, allocations: 23.98 kB / 487.8 MB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.344e-05/0.4116, allocations: 31.94 kB / 487.8 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.4116, allocations: 4 kB / 487.8 MB, free: 9.207 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001342/0.4117, allocations: 165.4 kB / 488 MB, free: 9.043 MB / 362.7 MB Notification: Performance of sort global known variables: time 3e-07/0.4118, allocations: 0 / 488 MB, free: 9.043 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003412/0.4121, allocations: 79.78 kB / 488.1 MB, free: 8.965 MB / 362.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) * 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.0001585/0.4123, allocations: 115.2 kB / 488.2 MB, free: 8.844 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004781/0.4127, allocations: 266.5 kB / 488.5 MB, free: 8.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4128, allocations: 4.25 kB / 488.5 MB, free: 8.566 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002486/0.413, allocations: 198.6 kB / 488.7 MB, free: 8.359 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.4133, allocations: 28.42 kB / 488.7 MB, free: 8.332 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.4146, allocations: 0.5071 MB / 489.2 MB, free: 7.801 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.4149, allocations: 0.7674 MB / 490 MB, free: 7.008 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.415, allocations: 26.06 kB / 490 MB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.527e-05/0.415, allocations: 19.44 kB / 490 MB, free: 6.961 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.415, allocations: 0 / 490 MB, free: 6.961 MB / 362.7 MB Notification: Performance of Templates: time 0.006193/0.4212, allocations: 2.758 MB / 492.8 MB, free: 4.242 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches