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.001698/0.001698, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.616/1.616, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 104.6 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 35.95 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2907, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00332/0.2941, allocations: 2.898 MB / 402.4 MB, free: 30.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009927/0.2951, allocations: 0.7215 MB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.2953, allocations: 4 kB / 403.1 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.2954, allocations: 39.69 kB / 403.1 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001369/0.2956, allocations: 79.38 kB / 403.2 MB, free: 29.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.2958, allocations: 79.88 kB / 403.3 MB, free: 29.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002383/0.2961, allocations: 366.3 kB / 403.6 MB, free: 29.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.2962, allocations: 99.92 kB / 403.7 MB, free: 29.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.079e-05/0.2963, allocations: 135.5 kB / 403.9 MB, free: 28.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.2965, allocations: 143.4 kB / 404 MB, free: 28.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.854e-05/0.2965, allocations: 20 kB / 404 MB, free: 28.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.382e-05/0.2966, allocations: 20 kB / 404.1 MB, free: 28.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.407e-05/0.2966, allocations: 59.77 kB / 404.1 MB, free: 28.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.2967, allocations: 155.2 kB / 404.3 MB, free: 28.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002164/0.297, allocations: 344.3 kB / 404.6 MB, free: 28.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.297, allocations: 0 / 404.6 MB, free: 28.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.297, allocations: 0 / 404.6 MB, free: 28.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.297, allocations: 0 / 404.6 MB, free: 28.21 MB / 298.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.0008175/0.2978, allocations: 0.6111 MB / 405.2 MB, free: 27.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.2979, allocations: 12.03 kB / 405.2 MB, free: 27.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.456e-05/0.2979, allocations: 36.56 kB / 405.3 MB, free: 27.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.2982, allocations: 256.4 kB / 405.5 MB, free: 27.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.657e-05/0.2983, allocations: 88.61 kB / 405.6 MB, free: 27.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.058e-05/0.2983, allocations: 24.38 kB / 405.6 MB, free: 27.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.2987, allocations: 301.8 kB / 405.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2987, allocations: 0 / 405.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.2988, allocations: 12 kB / 405.9 MB, free: 26.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.2988, allocations: 11.94 kB / 405.9 MB, free: 26.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002721/0.299, allocations: 198.1 kB / 406.1 MB, free: 26.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.3003, allocations: 1.131 MB / 407.3 MB, free: 25.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.3006, allocations: 155.1 kB / 407.4 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.3007, allocations: 80.83 kB / 407.5 MB, free: 25.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.3007, allocations: 4 kB / 407.5 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002643/0.301, allocations: 161.8 kB / 407.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.442e-06/0.301, allocations: 0 / 407.7 MB, free: 24.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008929/0.3019, allocations: 385.4 kB / 408 MB, free: 24.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.302, allocations: 106.8 kB / 408.1 MB, free: 24.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.3021, allocations: 229 kB / 408.4 MB, free: 24.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.3022, allocations: 29.7 kB / 408.4 MB, free: 24.13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.6e-05/0.3022, allocations: 184.1 kB / 408.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.3023, allocations: 67 kB / 408.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-05/0.3024, allocations: 57.7 kB / 408.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.059e-05/0.3024, allocations: 346.7 kB / 409 MB, free: 23.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.3025, allocations: 67.97 kB / 409.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.3027, allocations: 132.8 kB / 409.2 MB, free: 23.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.3029, allocations: 189.8 kB / 409.4 MB, free: 23.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3029, allocations: 4 kB / 409.4 MB, free: 23.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003341/0.3032, allocations: 276.4 kB / 409.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.3032, allocations: 4 kB / 409.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3032, allocations: 4 kB / 409.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/0.3035, allocations: 57.03 kB / 409.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.3037, allocations: 51.91 kB / 409.8 MB, free: 22.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008638/0.3046, allocations: 1.401 MB / 411.2 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002042/0.3048, allocations: 35.73 kB / 411.2 MB, free: 21.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.3048, allocations: 15.98 kB / 411.3 MB, free: 21.05 MB / 298.7 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.0001038/0.3049, allocations: 147.9 kB / 411.4 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.877e-05/0.3049, allocations: 27.84 kB / 411.4 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.063e-05/0.305, allocations: 30.11 kB / 411.5 MB, free: 20.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.305, allocations: 4 kB / 411.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.305, allocations: 0 / 411.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.305, allocations: 0 / 411.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000213/0.3052, allocations: 329.3 kB / 411.8 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3052, allocations: 0 / 411.8 MB, free: 20.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001487/0.3054, allocations: 39.86 kB / 411.8 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001648/0.3056, allocations: 56.81 kB / 411.9 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.3056, allocations: 3.984 kB / 411.9 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007699/0.3064, allocations: 1.315 MB / 413.2 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3064, allocations: 0 / 413.2 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004737/0.3111, allocations: 2.387 MB / 415.6 MB, free: 16.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.372e-05/0.3112, allocations: 116.8 kB / 415.7 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.3113, allocations: 0 / 415.7 MB, free: 16.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.3114, allocations: 19.98 kB / 415.7 MB, free: 16.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/0.3115, allocations: 31.94 kB / 415.7 MB, free: 16.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.325e-05/0.3116, allocations: 4 kB / 415.7 MB, free: 16.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000121/0.3117, allocations: 172.5 kB / 415.9 MB, free: 16.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3117, allocations: 0 / 415.9 MB, free: 16.03 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004855/0.3122, allocations: 111.8 kB / 416 MB, free: 15.92 MB / 298.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 (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.0001342/0.3123, allocations: 99.78 kB / 416.1 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004585/0.3128, allocations: 286.5 kB / 416.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3128, allocations: 4.438 kB / 416.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002116/0.313, allocations: 194.6 kB / 416.6 MB, free: 15.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.3133, allocations: 40.34 kB / 416.6 MB, free: 15.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.3149, allocations: 0.9454 MB / 417.6 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.3151, allocations: 0.7638 MB / 418.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.3152, allocations: 30.28 kB / 418.4 MB, free: 13.47 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.787e-05/0.3153, allocations: 19.44 kB / 418.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3153, allocations: 0 / 418.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of Templates: time 0.005741/0.321, allocations: 3.343 MB / 421.7 MB, free: 10.13 MB / 298.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@2/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