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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001239/0.001239, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001578/0.001578, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 59.89 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4013/0.4029, allocations: 50.55 MB / 409.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004719/0.4076, allocations: 2.889 MB / 412.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.4095, allocations: 0.7633 MB / 412.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001818/0.4097, allocations: 4 kB / 412.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002552/0.4099, allocations: 51.5 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002218/0.4102, allocations: 87.2 kB / 413.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004161/0.4106, allocations: 103.8 kB / 413.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004621/0.4111, allocations: 370.4 kB / 413.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002961/0.4114, allocations: 135.2 kB / 413.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.4115, allocations: 139.5 kB / 413.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.4118, allocations: 155.3 kB / 413.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.316e-05/0.4118, allocations: 32 kB / 414 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.841e-05/0.4119, allocations: 28 kB / 414 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.138e-05/0.412, allocations: 63.83 kB / 414.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.4122, allocations: 167.2 kB / 414.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004604/0.4127, allocations: 367.9 kB / 414.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.4127, allocations: 0 / 414.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.4127, allocations: 3.938 kB / 414.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.4127, allocations: 0 / 414.6 MB, free: 12.21 MB / 334.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.001144/0.4139, allocations: 0.6017 MB / 415.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.501e-05/0.4139, allocations: 12.03 kB / 415.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.831e-05/0.414, allocations: 32.56 kB / 415.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004861/0.4145, allocations: 268.4 kB / 415.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.4146, allocations: 80.56 kB / 415.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.515e-05/0.4147, allocations: 32.31 kB / 415.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004942/0.4152, allocations: 301.9 kB / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.4152, allocations: 0 / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/0.4153, allocations: 12 kB / 415.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.4153, allocations: 4 kB / 415.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/0.4157, allocations: 194.1 kB / 416.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.4174, allocations: 1.123 MB / 417.2 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003333/0.4177, allocations: 162.5 kB / 417.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.4179, allocations: 80.83 kB / 417.5 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.4179, allocations: 0 / 417.5 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000285/0.4182, allocations: 157.4 kB / 417.6 MB, free: 8.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.794e-06/0.4182, allocations: 4 kB / 417.6 MB, free: 8.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001131/0.4194, allocations: 383.1 kB / 418 MB, free: 8.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.865e-05/0.4195, allocations: 110.8 kB / 418.1 MB, free: 8.418 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.4197, allocations: 225 kB / 418.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.4198, allocations: 37.64 kB / 418.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.4199, allocations: 184.1 kB / 418.5 MB, free: 7.961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.515e-05/0.42, allocations: 63.09 kB / 418.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.4201, allocations: 57.61 kB / 418.7 MB, free: 7.836 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4202, allocations: 342.8 kB / 419 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.4204, allocations: 63.97 kB / 419.1 MB, free: 7.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.4206, allocations: 149.5 kB / 419.2 MB, free: 7.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003015/0.4209, allocations: 184.2 kB / 419.4 MB, free: 7.047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.4209, allocations: 0 / 419.4 MB, free: 7.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004398/0.4213, allocations: 272.4 kB / 419.6 MB, free: 6.773 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.4214, allocations: 8.219 kB / 419.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4214, allocations: 4 kB / 419.7 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002906/0.4217, allocations: 56.81 kB / 419.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002207/0.4219, allocations: 51.91 kB / 419.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/0.4234, allocations: 1.572 MB / 421.3 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/0.4236, allocations: 31.86 kB / 421.4 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.4237, allocations: 12 kB / 421.4 MB, free: 4.898 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001706/0.4238, allocations: 153.6 kB / 421.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.742e-05/0.4239, allocations: 31.64 kB / 421.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.487e-05/0.4239, allocations: 26.19 kB / 421.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.424, allocations: 8.062 kB / 421.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.424, allocations: 0 / 421.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.424, allocations: 3.984 kB / 421.6 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.4243, allocations: 321.3 kB / 421.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4243, allocations: 0 / 421.9 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.4245, allocations: 31.98 kB / 421.9 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001934/0.4247, allocations: 56.75 kB / 422 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.4247, allocations: 4 kB / 422 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001153/0.4259, allocations: 1.422 MB / 423.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4259, allocations: 0 / 423.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006175/0.4265, allocations: 333 kB / 423.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.4266, allocations: 112.8 kB / 423.9 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.325e-05/0.4267, allocations: 8 kB / 423.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.4268, allocations: 15.98 kB / 423.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.381e-05/0.427, allocations: 31.89 kB / 423.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.427, allocations: 8 kB / 423.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001514/0.4271, allocations: 160.5 kB / 424.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4271, allocations: 0 / 424.1 MB, free: 1.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003826/0.4275, allocations: 87.81 kB / 424.2 MB, free: 1.875 MB / 334.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) * 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 (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 0.0001614/0.4277, allocations: 107.2 kB / 424.3 MB, free: 1.762 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005768/0.4283, allocations: 290.5 kB / 424.5 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.4283, allocations: 3.938 kB / 424.6 MB, free: 1.461 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002796/0.4286, allocations: 195 kB / 424.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.4289, allocations: 36.41 kB / 424.8 MB, free: 1.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.4305, allocations: 0.6436 MB / 425.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.4309, allocations: 0.7634 MB / 426.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.561e-05/0.431, allocations: 26.23 kB / 426.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.004e-05/0.431, allocations: 19.44 kB / 426.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.431, allocations: 0 / 426.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of Templates: time 0.00704/0.4381, allocations: 3.099 MB / 429.3 MB, free: 12.65 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches