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.001966/0.001966, allocations: 199.8 kB / 18.11 MB, free: 3.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 226.5 MB / 245.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000777/0.0007769, allocations: 91.45 kB / 297.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.0002659, allocations: 8 kB / 358.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2968, allocations: 51.28 MB / 409.4 MB, free: 27.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1232/0.42, allocations: 80.18 MB / 489.6 MB, free: 11.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003369/0.4205, allocations: 75.95 kB / 489.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01592/0.4364, allocations: 5.647 MB / 495.3 MB, free: 5.543 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.426e-06/0.4365, allocations: 0 / 495.3 MB, free: 5.543 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.817e-05/0.4365, allocations: 12 kB / 495.3 MB, free: 5.531 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.001248/0.4378, allocations: 0.5685 MB / 495.9 MB, free: 4.914 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.4378, allocations: 8.031 kB / 495.9 MB, free: 4.906 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.438, allocations: 36.56 kB / 495.9 MB, free: 4.871 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/0.4384, allocations: 247.9 kB / 496.1 MB, free: 4.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/0.4386, allocations: 88.55 kB / 496.2 MB, free: 4.492 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.4386, allocations: 24.38 kB / 496.3 MB, free: 4.469 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000573/0.4392, allocations: 290.3 kB / 496.5 MB, free: 4.176 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.4392, allocations: 7.938 kB / 496.5 MB, free: 4.168 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.105e-05/0.4393, allocations: 15.98 kB / 496.6 MB, free: 4.152 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.4393, allocations: 8 kB / 496.6 MB, free: 4.145 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003878/0.4397, allocations: 186.1 kB / 496.8 MB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002023/0.4417, allocations: 1.139 MB / 497.9 MB, free: 2.742 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003379/0.4421, allocations: 162.5 kB / 498 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.4422, allocations: 72.84 kB / 498.1 MB, free: 2.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.4423, allocations: 11.97 kB / 498.1 MB, free: 2.488 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003404/0.4426, allocations: 168.5 kB / 498.3 MB, free: 2.305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.094e-06/0.4426, allocations: 0 / 498.3 MB, free: 2.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001108/0.4438, allocations: 387.3 kB / 498.7 MB, free: 1.898 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.005e-05/0.4439, allocations: 106.8 kB / 498.8 MB, free: 1.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.4441, allocations: 224.9 kB / 499 MB, free: 1.539 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.4442, allocations: 29.7 kB / 499 MB, free: 1.504 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.4443, allocations: 172.2 kB / 499.2 MB, free: 1.332 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.866e-05/0.4444, allocations: 67.09 kB / 499.3 MB, free: 1.266 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.524e-05/0.4444, allocations: 12 kB / 499.3 MB, free: 1.254 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.4446, allocations: 334.8 kB / 499.6 MB, free: 0.918 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.4447, allocations: 64.53 kB / 499.7 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.4449, allocations: 137 kB / 499.8 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.4452, allocations: 166.5 kB / 500 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.4452, allocations: 0 / 500 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004885/0.4457, allocations: 264 kB / 0.4885 GB, free: 256 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.4457, allocations: 8 kB / 0.4885 GB, free: 248 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.4457, allocations: 0 / 0.4885 GB, free: 248 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002996/0.446, allocations: 56.81 kB / 0.4886 GB, free: 188 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002238/0.4463, allocations: 43.92 kB / 0.4886 GB, free: 144 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001526/0.4478, allocations: 1.413 MB / 0.49 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002624/0.4481, allocations: 39.77 kB / 0.49 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.4481, allocations: 8 kB / 0.49 GB, free: 14.55 MB / 378.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.0002148/0.4483, allocations: 155.3 kB / 0.4902 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.124e-05/0.4484, allocations: 23.91 kB / 0.4902 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.07e-05/0.4485, allocations: 26.12 kB / 0.4902 GB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.4485, allocations: 4 kB / 0.4902 GB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4485, allocations: 4 kB / 0.4902 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.4485, allocations: 3.984 kB / 0.4902 GB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004118/0.4489, allocations: 321.3 kB / 0.4905 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4489, allocations: 0 / 0.4905 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001815/0.4491, allocations: 35.92 kB / 0.4906 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002285/0.4493, allocations: 56.75 kB / 0.4906 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/0.4494, allocations: 7.984 kB / 0.4906 GB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/0.4507, allocations: 1.323 MB / 0.4919 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4507, allocations: 0 / 0.4919 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006315/0.4513, allocations: 331.8 kB / 0.4922 GB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.4515, allocations: 116.8 kB / 0.4924 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.291e-05/0.4515, allocations: 4 kB / 0.4924 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.4517, allocations: 19.98 kB / 0.4924 GB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.4518, allocations: 39.94 kB / 0.4924 GB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/0.4518, allocations: 8 kB / 0.4924 GB, free: 11.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001506/0.452, allocations: 160.5 kB / 0.4926 GB, free: 11.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.452, allocations: 0 / 0.4926 GB, free: 11.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003929/0.4524, allocations: 83.78 kB / 0.4927 GB, free: 11.61 MB / 378.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.0001931/0.4526, allocations: 111.2 kB / 0.4928 GB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005799/0.4532, allocations: 282.8 kB / 0.493 GB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4532, allocations: 0 / 0.493 GB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003097/0.4535, allocations: 194.6 kB / 0.4932 GB, free: 11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003415/0.4539, allocations: 42.22 kB / 0.4933 GB, free: 10.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.4556, allocations: 0.8217 MB / 0.4941 GB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003622/0.456, allocations: 0.7597 MB / 0.4948 GB, free: 9.344 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.4562, allocations: 21.94 kB / 0.4948 GB, free: 9.324 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.007e-05/0.4562, allocations: 19.44 kB / 0.4948 GB, free: 9.305 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4562, allocations: 7.938 kB / 0.4948 GB, free: 9.297 MB / 378.7 MB Notification: Performance of Templates: time 0.006945/0.4632, allocations: 2.762 MB / 0.4975 GB, free: 6.566 MB / 378.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/jenkins1/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