Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001023/0.001024, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 225.6 MB / 234.8 MB, free: 3.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009526/0.000953, allocations: 99.39 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.39e-05/2.394e-05, allocations: 4 kB / 343.7 MB, free: 8.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09364, allocations: 51.49 MB / 395.2 MB, free: 4.715 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3096/0.4033, allocations: 79.5 MB / 474.7 MB, free: 12.51 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001615/0.4035, allocations: 69 kB / 474.7 MB, free: 12.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01307/0.4166, allocations: 5.613 MB / 480.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4166, allocations: 224 / 480.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.4166, allocations: 4 kB / 480.4 MB, free: 8.898 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.0007315/0.4174, allocations: 0.5378 MB / 480.9 MB, free: 8.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.4174, allocations: 12.03 kB / 480.9 MB, free: 8.328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.26e-05/0.4175, allocations: 35.61 kB / 480.9 MB, free: 8.293 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.4177, allocations: 253.2 kB / 481.2 MB, free: 8.027 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.451e-05/0.4178, allocations: 71.86 kB / 481.3 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.386e-05/0.4179, allocations: 23.59 kB / 481.3 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002862/0.4182, allocations: 163.9 kB / 481.4 MB, free: 7.824 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003464/0.4185, allocations: 252.6 kB / 481.7 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.4185, allocations: 1.5 kB / 481.7 MB, free: 7.625 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.658e-05/0.4186, allocations: 3.984 kB / 481.7 MB, free: 7.621 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.4186, allocations: 8 kB / 481.7 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.4199, allocations: 1.069 MB / 482.8 MB, free: 6.625 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002244/0.4202, allocations: 135.7 kB / 482.9 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.565e-05/0.4203, allocations: 74.84 kB / 483 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.4203, allocations: 3.984 kB / 483 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.4205, allocations: 143.2 kB / 483.1 MB, free: 6.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 1.502e-06/0.4205, allocations: 0 / 483.1 MB, free: 6.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004718/0.421, allocations: 214.5 kB / 483.3 MB, free: 6.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.965e-05/0.421, allocations: 102.8 kB / 483.4 MB, free: 6.035 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.4211, allocations: 170.9 kB / 483.6 MB, free: 5.883 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.4212, allocations: 25.7 kB / 483.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.359e-05/0.4212, allocations: 173.1 kB / 483.8 MB, free: 5.695 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.652e-05/0.4213, allocations: 66.59 kB / 483.9 MB, free: 5.641 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.4213, allocations: 0 / 483.9 MB, free: 5.641 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.673e-05/0.4214, allocations: 332.4 kB / 484.2 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.328e-05/0.4214, allocations: 58.11 kB / 484.2 MB, free: 5.277 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.4216, allocations: 124.8 kB / 484.4 MB, free: 5.164 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.383e-05/0.4217, allocations: 62.62 kB / 484.4 MB, free: 5.125 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4217, allocations: 0 / 484.4 MB, free: 5.125 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002833/0.422, allocations: 233.8 kB / 484.7 MB, free: 4.934 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.422, allocations: 4 kB / 484.7 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.422, allocations: 6.734 kB / 484.7 MB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002314/0.4222, allocations: 55.78 kB / 484.7 MB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.4224, allocations: 47.92 kB / 484.8 MB, free: 4.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008429/0.4233, allocations: 1.365 MB / 486.1 MB, free: 3.414 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000189/0.4235, allocations: 34.89 kB / 486.2 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.4235, allocations: 11.98 kB / 486.2 MB, free: 3.371 MB / 346.7 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.0001124/0.4236, allocations: 119.7 kB / 486.3 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.4237, allocations: 19.72 kB / 486.3 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.949e-05/0.4237, allocations: 24.61 kB / 486.3 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.4237, allocations: 4 kB / 486.3 MB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.4237, allocations: 3.984 kB / 486.3 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.4237, allocations: 0 / 486.3 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.4239, allocations: 269.8 kB / 486.6 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4239, allocations: 0 / 486.6 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.4241, allocations: 35.17 kB / 486.6 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001495/0.4242, allocations: 55.5 kB / 486.7 MB, free: 2.871 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.4243, allocations: 4 kB / 486.7 MB, free: 2.867 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006932/0.425, allocations: 1.279 MB / 488 MB, free: 1.531 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.425, allocations: 7.984 kB / 488 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008117/0.4258, allocations: 302.3 kB / 488.3 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000168/0.426, allocations: 108.7 kB / 488.4 MB, free: 1.156 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.466e-05/0.4261, allocations: 5.812 kB / 488.4 MB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.4263, allocations: 15.98 kB / 488.4 MB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4265, allocations: 38.58 kB / 488.4 MB, free: 1.105 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.4265, allocations: 4 kB / 488.5 MB, free: 1.102 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001221/0.4266, allocations: 141.5 kB / 488.6 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4266, allocations: 0 / 488.6 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006123/0.4273, allocations: 75.69 kB / 488.7 MB, free: 0.9102 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) * 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.0001402/0.4274, allocations: 118.1 kB / 488.8 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005671/0.428, allocations: 254.6 kB / 489 MB, free: 0.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.428, allocations: 0 / 489 MB, free: 0.582 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002932/0.4283, allocations: 186 kB / 489.2 MB, free: 428 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.4286, allocations: 24.73 kB / 489.2 MB, free: 408 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.4304, allocations: 0.4984 MB / 489.7 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003947/0.4308, allocations: 0.7633 MB / 490.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001415/0.4309, allocations: 22.06 kB / 490.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.641e-05/0.431, allocations: 17.12 kB / 490.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.431, allocations: 4 kB / 490.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of Templates: time 0.007786/0.4388, allocations: 2.339 MB / 492.9 MB, free: 12.82 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches