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.001344/0.001344, allocations: 176.9 kB / 17.4 MB, free: 4.297 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.491/1.491, allocations: 223.3 MB / 241.4 MB, free: 11.67 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.000871/0.0008711, allocations: 104.2 kB / 292.6 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.0003661, allocations: 15.94 kB / 352.4 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2809, allocations: 50.39 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.394, allocations: 79.47 MB / 482.2 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.3944, allocations: 79.95 kB / 482.3 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01514/0.4095, allocations: 5.603 MB / 487.9 MB, free: 11.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4096, allocations: 0 / 487.9 MB, free: 11.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.015e-05/0.4096, allocations: 4 kB / 487.9 MB, free: 11.12 MB / 362.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.001121/0.4107, allocations: 0.5605 MB / 488.5 MB, free: 10.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.4108, allocations: 8.031 kB / 488.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.4109, allocations: 36.56 kB / 488.5 MB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.4113, allocations: 255.7 kB / 488.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.882e-05/0.4114, allocations: 84.61 kB / 488.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/0.4115, allocations: 24.38 kB / 488.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005342/0.412, allocations: 302.5 kB / 489.2 MB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.412, allocations: 3.938 kB / 489.2 MB, free: 9.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.87e-05/0.4121, allocations: 19.94 kB / 489.2 MB, free: 9.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.4121, allocations: 8 kB / 489.2 MB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003632/0.4125, allocations: 190.1 kB / 489.4 MB, free: 9.539 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.4143, allocations: 1.139 MB / 490.5 MB, free: 8.316 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002951/0.4146, allocations: 154.6 kB / 490.7 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.4148, allocations: 72.83 kB / 490.7 MB, free: 8.082 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.4148, allocations: 11.98 kB / 490.7 MB, free: 8.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003049/0.4151, allocations: 161.7 kB / 490.9 MB, free: 7.891 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.974e-06/0.4151, allocations: 0 / 490.9 MB, free: 7.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001044/0.4162, allocations: 387.3 kB / 491.3 MB, free: 7.484 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.532e-05/0.4163, allocations: 106.8 kB / 491.4 MB, free: 7.355 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/0.4165, allocations: 232.8 kB / 491.6 MB, free: 7.121 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.4166, allocations: 37.7 kB / 491.6 MB, free: 7.078 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.4167, allocations: 172.2 kB / 491.8 MB, free: 6.906 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.15e-05/0.4167, allocations: 63.14 kB / 491.9 MB, free: 6.844 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.4168, allocations: 8 kB / 491.9 MB, free: 6.836 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4169, allocations: 334.8 kB / 492.2 MB, free: 6.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.417, allocations: 60.53 kB / 492.3 MB, free: 6.438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001647/0.4172, allocations: 137 kB / 492.4 MB, free: 6.281 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.4175, allocations: 168.1 kB / 492.6 MB, free: 6.102 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.4175, allocations: 0 / 492.6 MB, free: 6.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004403/0.4179, allocations: 260 kB / 492.8 MB, free: 5.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/0.418, allocations: 8 kB / 492.8 MB, free: 5.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.418, allocations: 0 / 492.8 MB, free: 5.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002724/0.4182, allocations: 64.91 kB / 492.9 MB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.4185, allocations: 39.98 kB / 492.9 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.4198, allocations: 1.412 MB / 494.3 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002477/0.4201, allocations: 43.7 kB / 494.4 MB, free: 4.137 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.346e-05/0.4201, allocations: 12 kB / 494.4 MB, free: 4.125 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 () * Number of clocked 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.0001633/0.4203, allocations: 146.9 kB / 494.5 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.748e-05/0.4203, allocations: 23.75 kB / 494.6 MB, free: 3.949 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.583e-05/0.4204, allocations: 26.12 kB / 494.6 MB, free: 3.922 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.4204, allocations: 4 kB / 494.6 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4204, allocations: 7.922 kB / 494.6 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4204, allocations: 0 / 494.6 MB, free: 3.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003344/0.4208, allocations: 321.3 kB / 494.9 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4208, allocations: 0 / 494.9 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.421, allocations: 39.92 kB / 495 MB, free: 3.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001807/0.4212, allocations: 52.75 kB / 495 MB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.4212, allocations: 7.984 kB / 495 MB, free: 3.445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.4224, allocations: 1.323 MB / 496.3 MB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4224, allocations: 0 / 496.3 MB, free: 1.984 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006368/0.423, allocations: 335.7 kB / 496.7 MB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.4232, allocations: 112.8 kB / 496.8 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.333e-05/0.4232, allocations: 4 kB / 496.8 MB, free: 1.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.4234, allocations: 28.05 kB / 496.8 MB, free: 1.477 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.917e-05/0.4235, allocations: 31.94 kB / 496.8 MB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.4235, allocations: 4 kB / 496.8 MB, free: 1.441 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001631/0.4237, allocations: 160.5 kB / 497 MB, free: 1.281 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4237, allocations: 0 / 497 MB, free: 1.281 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003824/0.4241, allocations: 87.72 kB / 497.1 MB, free: 1.195 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) * 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 (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.0001755/0.4242, allocations: 111.8 kB / 497.2 MB, free: 1.078 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005424/0.4248, allocations: 278.5 kB / 497.5 MB, free: 0.793 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4248, allocations: 0 / 497.5 MB, free: 0.793 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002787/0.4251, allocations: 196.3 kB / 497.7 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.4254, allocations: 39.55 kB / 497.7 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001671/0.4271, allocations: 0.8102 MB / 498.5 MB, free: 15.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.4275, allocations: 0.7597 MB / 499.3 MB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.4276, allocations: 21.95 kB / 499.3 MB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.456e-05/0.4277, allocations: 19.44 kB / 499.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4277, allocations: 0 / 499.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of Templates: time 0.006902/0.4346, allocations: 2.794 MB / 0.4903 GB, free: 12.13 MB / 378.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/jenkins1/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