Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001371/0.001371, allocations: 171.3 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000785/0.0007849, allocations: 74.73 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.43e-05/2.431e-05, allocations: 4 kB / 322.4 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09321/0.09325, allocations: 47.58 MB / 370 MB, free: 1.691 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3303/0.4236, allocations: 77.97 MB / 448 MB, free: 15.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.4239, allocations: 72.16 kB / 448.1 MB, free: 15.24 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01467/0.4386, allocations: 5.422 MB / 453.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4387, allocations: 0 / 453.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.4387, allocations: 8 kB / 453.5 MB, free: 10.62 MB / 330.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.0008661/0.4396, allocations: 0.5327 MB / 454 MB, free: 10.06 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.4396, allocations: 12.03 kB / 454 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.055e-05/0.4397, allocations: 31.62 kB / 454.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.4401, allocations: 261.4 kB / 454.3 MB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.811e-05/0.4402, allocations: 87.81 kB / 454.4 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.901e-05/0.4402, allocations: 27.56 kB / 454.4 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.4407, allocations: 291.9 kB / 454.7 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.4407, allocations: 0 / 454.7 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.4408, allocations: 11.84 kB / 454.7 MB, free: 9.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.4408, allocations: 8 kB / 454.7 MB, free: 9.402 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003095/0.4411, allocations: 187.1 kB / 454.9 MB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001616/0.4427, allocations: 1.137 MB / 456.1 MB, free: 8.234 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000287/0.443, allocations: 156 kB / 456.2 MB, free: 8.121 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.4432, allocations: 73.73 kB / 456.3 MB, free: 8.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.4432, allocations: 0 / 456.3 MB, free: 8.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002846/0.4435, allocations: 163.2 kB / 456.5 MB, free: 7.918 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.4435, allocations: 0 / 456.5 MB, free: 7.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005979/0.4441, allocations: 227.1 kB / 456.7 MB, free: 7.727 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.4442, allocations: 110.3 kB / 456.8 MB, free: 7.598 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.4444, allocations: 195.1 kB / 457 MB, free: 7.434 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.4444, allocations: 40.25 kB / 457 MB, free: 7.391 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.4445, allocations: 168.9 kB / 457.2 MB, free: 7.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.324e-05/0.4446, allocations: 65.91 kB / 457.2 MB, free: 7.191 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.119e-05/0.4446, allocations: 3.625 kB / 457.2 MB, free: 7.191 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4448, allocations: 337.8 kB / 457.6 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.4449, allocations: 58.44 kB / 457.6 MB, free: 6.824 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.445, allocations: 125.5 kB / 457.8 MB, free: 6.707 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.4452, allocations: 76.16 kB / 457.8 MB, free: 6.656 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.4452, allocations: 4 kB / 457.8 MB, free: 6.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003734/0.4456, allocations: 254.4 kB / 458.1 MB, free: 6.453 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.4456, allocations: 7.953 kB / 458.1 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.4456, allocations: 4 kB / 458.1 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002511/0.4459, allocations: 52.47 kB / 458.1 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.4461, allocations: 51.92 kB / 458.2 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.4474, allocations: 1.401 MB / 459.6 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002138/0.4477, allocations: 43.8 kB / 459.6 MB, free: 4.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.972e-05/0.4477, allocations: 12 kB / 459.6 MB, free: 4.75 MB / 330.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 () * 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.0001147/0.4478, allocations: 124.9 kB / 459.8 MB, free: 4.621 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.686e-05/0.4479, allocations: 23.72 kB / 459.8 MB, free: 4.598 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.1e-05/0.4479, allocations: 25.95 kB / 459.8 MB, free: 4.574 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.4479, allocations: 7.938 kB / 459.8 MB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.4479, allocations: 0 / 459.8 MB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.448, allocations: 0 / 459.8 MB, free: 4.566 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003358/0.4483, allocations: 325.4 kB / 460.1 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.4483, allocations: 4 kB / 460.1 MB, free: 4.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001637/0.4485, allocations: 35.92 kB / 460.2 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001709/0.4487, allocations: 48.81 kB / 460.2 MB, free: 4.109 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.4487, allocations: 7.984 kB / 460.2 MB, free: 4.102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.4498, allocations: 1.323 MB / 461.6 MB, free: 2.645 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.4498, allocations: 4.156 kB / 461.6 MB, free: 2.641 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006125/0.4504, allocations: 321.5 kB / 461.9 MB, free: 2.305 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.4505, allocations: 108.8 kB / 462 MB, free: 2.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.4506, allocations: 4 kB / 462 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.4508, allocations: 28.05 kB / 462 MB, free: 2.148 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.677e-05/0.4509, allocations: 31.94 kB / 462 MB, free: 2.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.4509, allocations: 7.984 kB / 462.1 MB, free: 2.109 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001401/0.451, allocations: 153.4 kB / 462.2 MB, free: 1.957 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4511, allocations: 7.938 kB / 462.2 MB, free: 1.949 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003289/0.4514, allocations: 75.84 kB / 462.3 MB, free: 1.875 MB / 330.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) * 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.0001788/0.4516, allocations: 120.2 kB / 462.4 MB, free: 1.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005042/0.4521, allocations: 278.4 kB / 462.7 MB, free: 1.465 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4521, allocations: 0 / 462.7 MB, free: 1.465 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002681/0.4524, allocations: 194.8 kB / 462.9 MB, free: 1.262 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.4526, allocations: 40.67 kB / 462.9 MB, free: 1.223 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001342/0.454, allocations: 0.5195 MB / 463.4 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.4543, allocations: 0.7635 MB / 464.2 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.606e-05/0.4545, allocations: 26.05 kB / 464.2 MB, free: 15.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.785e-05/0.4545, allocations: 19.44 kB / 464.2 MB, free: 15.84 MB / 346.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4545, allocations: 0 / 464.2 MB, free: 15.84 MB / 346.7 MB Notification: Performance of Templates: time 0.006485/0.461, allocations: 2.753 MB / 467 MB, free: 13.1 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches