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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009247/0.0009247, allocations: 93.31 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 175.5 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002304/0.0002304, allocations: 11.94 kB / 302.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07284/0.07309, allocations: 50.42 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.0026/0.07571, allocations: 2.529 MB / 355 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.07682, allocations: 0.7207 MB / 355.7 MB, free: 432 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.07699, allocations: 7.938 kB / 355.8 MB, free: 424 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.07712, allocations: 39.69 kB / 355.8 MB, free: 384 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/0.0773, allocations: 75.38 kB / 355.9 MB, free: 308 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002871/0.0776, allocations: 79.92 kB / 355.9 MB, free: 228 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003359/0.07794, allocations: 354.3 kB / 356.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.07815, allocations: 115.8 kB / 356.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.07829, allocations: 119.5 kB / 356.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.07846, allocations: 131.4 kB / 356.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.724e-05/0.07851, allocations: 16 kB / 356.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.381e-05/0.07856, allocations: 20 kB / 356.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.149e-05/0.07862, allocations: 51.77 kB / 356.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.07877, allocations: 176.9 kB / 356.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.07899, allocations: 259.5 kB / 357.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.079, allocations: 4 kB / 357.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.07901, allocations: 0 / 357.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.07902, allocations: 0 / 357.2 MB, free: 14.98 MB / 302.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.0008572/0.07989, allocations: 0.5628 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.07993, allocations: 8.031 kB / 357.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.209e-05/0.08, allocations: 36.56 kB / 357.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.08027, allocations: 264.3 kB / 358 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.941e-05/0.08035, allocations: 76.61 kB / 358.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/0.08041, allocations: 28.38 kB / 358.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004647/0.08088, allocations: 297.9 kB / 358.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.0809, allocations: 3.938 kB / 358.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.08094, allocations: 16 kB / 358.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.08095, allocations: 7.984 kB / 358.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003352/0.08129, allocations: 182.2 kB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.08287, allocations: 1.143 MB / 359.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.08318, allocations: 170.5 kB / 359.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.08333, allocations: 68.84 kB / 360 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.08335, allocations: 8 kB / 360 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002583/0.08362, allocations: 161 kB / 360.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.442e-06/0.08363, allocations: 0 / 360.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001037/0.08467, allocations: 399.2 kB / 360.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.08474, allocations: 102.8 kB / 360.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.08496, allocations: 229 kB / 360.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.08499, allocations: 37.7 kB / 360.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.0851, allocations: 176.2 kB / 361.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.522e-05/0.08516, allocations: 71.09 kB / 361.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.08521, allocations: 29.7 kB / 361.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.488e-05/0.08531, allocations: 338.7 kB / 361.5 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.08545, allocations: 71.91 kB / 361.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.08563, allocations: 144.6 kB / 361.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002596/0.08589, allocations: 193.1 kB / 361.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.0859, allocations: 0 / 361.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004255/0.08633, allocations: 272.4 kB / 362.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.08636, allocations: 4 kB / 362.2 MB, free: 9.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.08637, allocations: 4 kB / 362.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002443/0.08662, allocations: 57.03 kB / 362.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.08684, allocations: 55.91 kB / 362.3 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.08802, allocations: 1.408 MB / 363.7 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002395/0.08827, allocations: 51.86 kB / 363.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.0883, allocations: 8 kB / 363.8 MB, free: 7.859 MB / 302.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.0001335/0.08844, allocations: 145.8 kB / 363.9 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.517e-05/0.08848, allocations: 27.66 kB / 363.9 MB, free: 7.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.918e-05/0.08853, allocations: 26.17 kB / 364 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.08854, allocations: 0 / 364 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.08855, allocations: 4 kB / 364 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.08856, allocations: 4 kB / 364 MB, free: 7.652 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002844/0.08885, allocations: 317.4 kB / 364.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.08886, allocations: 0 / 364.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.08904, allocations: 35.92 kB / 364.3 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001887/0.08923, allocations: 60.75 kB / 364.4 MB, free: 7.195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.616e-05/0.08926, allocations: 4 kB / 364.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000998/0.09026, allocations: 1.315 MB / 365.7 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.09028, allocations: 4.031 kB / 365.7 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006157/0.0909, allocations: 331.2 kB / 366 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.073e-05/0.091, allocations: 116.8 kB / 366.1 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.09105, allocations: 4 kB / 366.1 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.09124, allocations: 19.98 kB / 366.2 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.878e-05/0.09133, allocations: 31.94 kB / 366.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.09135, allocations: 11.94 kB / 366.2 MB, free: 5.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001308/0.09148, allocations: 160.5 kB / 366.4 MB, free: 5.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.09149, allocations: 4 kB / 366.4 MB, free: 5.027 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003529/0.09185, allocations: 83.77 kB / 366.4 MB, free: 4.945 MB / 302.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.0001054/0.09196, allocations: 118.9 kB / 366.6 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004757/0.09245, allocations: 282.4 kB / 366.8 MB, free: 4.535 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.09246, allocations: 0 / 366.8 MB, free: 4.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.09273, allocations: 197.1 kB / 367 MB, free: 4.332 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003018/0.09304, allocations: 47.03 kB / 367.1 MB, free: 4.289 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.0946, allocations: 0.8533 MB / 367.9 MB, free: 3.402 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.09488, allocations: 0.7599 MB / 368.7 MB, free: 2.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.057e-05/0.09494, allocations: 19.44 kB / 368.7 MB, free: 2.598 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.09495, allocations: 7.938 kB / 368.7 MB, free: 2.59 MB / 302.1 MB Notification: Performance of Templates: time 0.1391/0.234, allocations: 4.123 MB / 372.8 MB, free: 23.97 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches