Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002081/0.002081, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00264/0.00264, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.608/1.608, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 55.94 kB / 373.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.1014, allocations: 53.33 MB / 426.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00496/0.1064, allocations: 3.178 MB / 430 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.108, allocations: 0.8217 MB / 430.8 MB, free: 264 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001609/0.1082, allocations: 4 kB / 430.8 MB, free: 260 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002074/0.1084, allocations: 71.3 kB / 430.9 MB, free: 188 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.1086, allocations: 107 kB / 431 MB, free: 80 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2375/0.3461, allocations: 113.4 kB / 431.1 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008698/0.347, allocations: 418.5 kB / 431.5 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002579/0.3472, allocations: 98.7 kB / 431.6 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003425/0.3476, allocations: 169.2 kB / 431.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002379/0.3478, allocations: 173.9 kB / 431.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.636e-05/0.3479, allocations: 35.66 kB / 432 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000106/0.348, allocations: 36.81 kB / 432 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.093e-05/0.348, allocations: 81.23 kB / 432.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001937/0.3482, allocations: 194.7 kB / 432.3 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000497/0.3487, allocations: 428.3 kB / 432.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3487, allocations: 0 / 432.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3487, allocations: 0.5625 kB / 432.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.178e-06/0.3488, allocations: 0 / 432.7 MB, free: 7.965 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00108/0.3498, allocations: 0.6621 MB / 433.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.3499, allocations: 9.312 kB / 433.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002237/0.3501, allocations: 54.8 kB / 433.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.3505, allocations: 286.7 kB / 433.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.004e-05/0.3505, allocations: 79.25 kB / 433.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-05/0.3506, allocations: 34.5 kB / 433.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005675/0.3512, allocations: 337.6 kB / 434.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.3512, allocations: 1.156 kB / 434.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.3512, allocations: 15.75 kB / 434.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.3512, allocations: 7.406 kB / 434.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004373/0.3517, allocations: 221.4 kB / 434.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.3535, allocations: 1.361 MB / 435.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003644/0.3539, allocations: 161.6 kB / 435.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.354, allocations: 82.12 kB / 436 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.3541, allocations: 7.188 kB / 436 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002928/0.3544, allocations: 155.6 kB / 436.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.873e-06/0.3544, allocations: 0 / 436.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001204/0.3556, allocations: 403.5 kB / 436.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.3556, allocations: 116.6 kB / 436.7 MB, free: 5.938 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.3559, allocations: 262.6 kB / 436.9 MB, free: 5.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.3559, allocations: 30.73 kB / 436.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.356, allocations: 212.6 kB / 437.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/0.3561, allocations: 75.95 kB / 437.2 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.3562, allocations: 59.42 kB / 437.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.012e-05/0.3563, allocations: 337.3 kB / 437.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.3565, allocations: 81.88 kB / 437.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/0.3567, allocations: 175.7 kB / 437.9 MB, free: 5.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003538/0.357, allocations: 236.8 kB / 438.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.357, allocations: 1.062 kB / 438.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007325/0.3578, allocations: 348.1 kB / 438.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.3578, allocations: 7.312 kB / 438.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.3578, allocations: 5.188 kB / 438.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002963/0.3581, allocations: 55.23 kB / 438.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.3584, allocations: 63.31 kB / 438.6 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.3595, allocations: 1.568 MB / 440.1 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.3598, allocations: 46.89 kB / 440.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.3598, allocations: 14.66 kB / 440.2 MB, free: 3.305 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001308/0.3599, allocations: 157.2 kB / 440.3 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.41e-05/0.36, allocations: 24.98 kB / 440.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.449e-05/0.36, allocations: 38.7 kB / 440.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.36, allocations: 4.703 kB / 440.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.36, allocations: 2.406 kB / 440.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.36, allocations: 1.078 kB / 440.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003239/0.3603, allocations: 343.6 kB / 440.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3603, allocations: 1.375 kB / 440.7 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002034/0.3606, allocations: 38.48 kB / 440.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001997/0.3608, allocations: 52.44 kB / 440.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.3608, allocations: 7.672 kB / 440.8 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009072/0.3617, allocations: 1.415 MB / 442.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3617, allocations: 8.812 kB / 442.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007395/0.3624, allocations: 349.7 kB / 442.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.273e-05/0.3625, allocations: 113.3 kB / 442.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.3626, allocations: 2.969 kB / 442.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.3627, allocations: 26 kB / 442.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/0.3628, allocations: 31.62 kB / 442.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.3629, allocations: 12.19 kB / 442.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001854/0.363, allocations: 182.7 kB / 443 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.363, allocations: 0 / 443 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004365/0.3635, allocations: 96.38 kB / 443.1 MB, free: 0.9727 MB / 350.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.00013/0.3636, allocations: 112.8 kB / 443.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000641/0.3642, allocations: 300.5 kB / 443.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3643, allocations: 0 / 443.5 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.3646, allocations: 205.7 kB / 443.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.3649, allocations: 35.09 kB / 443.7 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.3664, allocations: 0.679 MB / 444.4 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.3668, allocations: 0.7689 MB / 445.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001327/0.367, allocations: 28.95 kB / 445.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.698e-05/0.367, allocations: 26.66 kB / 445.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of SimCode: time 5.82e-07/0.367, allocations: 3.938 kB / 445.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of Templates: time 0.008665/0.3757, allocations: 3.189 MB / 448.4 MB, free: 15.23 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.1192990206182]