Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009421/0.0009421, allocations: 84.73 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 166.2 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9592/0.9592, allocations: 177 MB / 205.2 MB, free: 5.051 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 273.4 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.257e-05/2.385e-05, allocations: 5.266 kB / 273.4 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006723/0.006747, allocations: 3.13 MB / 276.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004504/0.01125, allocations: 0.8291 MB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001913/0.01144, allocations: 11.94 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.01161, allocations: 59.42 kB / 277.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002065/0.01182, allocations: 111 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.01219, allocations: 127.6 kB / 277.7 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003674/0.01256, allocations: 437.9 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.01273, allocations: 98.98 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/0.01302, allocations: 247.5 kB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001765/0.0132, allocations: 131.6 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.377e-05/0.01324, allocations: 36 kB / 278.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.924e-05/0.01331, allocations: 44 kB / 278.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003073/0.01638, allocations: 79.67 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.0165, allocations: 131.7 kB / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003201/0.01682, allocations: 290.9 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.01683, allocations: 0 / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01683, allocations: 0 / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.01683, allocations: 0 / 279.1 MB, free: 11.29 MB / 266.7 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.0006789/0.01751, allocations: 0.5583 MB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.01754, allocations: 11.98 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.0177, allocations: 60.89 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.01794, allocations: 202.1 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.318e-05/0.01802, allocations: 136 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.01806, allocations: 28.38 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.01839, allocations: 323.4 kB / 280.4 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.0184, allocations: 4.188 kB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.01842, allocations: 16.12 kB / 280.4 MB, free: 9.855 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.01843, allocations: 8 kB / 280.5 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.01857, allocations: 92.48 kB / 280.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.01966, allocations: 1.06 MB / 281.6 MB, free: 8.621 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.01983, allocations: 98.53 kB / 281.7 MB, free: 8.516 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.637e-05/0.01989, allocations: 40.83 kB / 281.7 MB, free: 8.473 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.0199, allocations: 7.938 kB / 281.8 MB, free: 8.465 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.02006, allocations: 181.2 kB / 281.9 MB, free: 8.254 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.104e-06/0.02007, allocations: 4 kB / 281.9 MB, free: 8.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004607/0.02053, allocations: 187.4 kB / 282.1 MB, free: 8.059 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.02057, allocations: 102.8 kB / 282.2 MB, free: 7.934 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.02072, allocations: 229.2 kB / 282.4 MB, free: 7.699 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.02074, allocations: 33.7 kB / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.042e-05/0.02083, allocations: 204.1 kB / 282.7 MB, free: 7.457 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.607e-05/0.02087, allocations: 75.41 kB / 282.7 MB, free: 7.383 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.191e-05/0.02095, allocations: 69.89 kB / 282.8 MB, free: 7.309 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.238e-05/0.02104, allocations: 338.8 kB / 283.1 MB, free: 6.969 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.755e-05/0.02108, allocations: 28.64 kB / 283.2 MB, free: 6.941 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.0212, allocations: 180.9 kB / 283.3 MB, free: 6.707 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.02143, allocations: 179.4 kB / 283.5 MB, free: 6.496 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.02143, allocations: 0 / 283.5 MB, free: 6.496 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002959/0.02173, allocations: 216.7 kB / 283.7 MB, free: 6.277 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.02174, allocations: 4 kB / 283.7 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.02175, allocations: 4 kB / 283.7 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001313/0.02188, allocations: 40.77 kB / 283.8 MB, free: 6.227 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001636/0.02204, allocations: 64.06 kB / 283.8 MB, free: 6.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004834/0.02688, allocations: 1.32 MB / 285.2 MB, free: 4.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001518/0.02703, allocations: 39.77 kB / 285.2 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.02705, allocations: 12 kB / 285.2 MB, free: 4.707 MB / 266.7 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.0001074/0.02716, allocations: 133.9 kB / 285.3 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.364e-05/0.02719, allocations: 27.92 kB / 285.4 MB, free: 4.539 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.099e-05/0.02722, allocations: 26.27 kB / 285.4 MB, free: 4.512 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.02723, allocations: 4 kB / 285.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.02723, allocations: 0 / 285.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.02723, allocations: 0 / 285.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/0.0274, allocations: 165.6 kB / 285.6 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.0274, allocations: 3.938 kB / 285.6 MB, free: 4.324 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.02752, allocations: 35.97 kB / 285.6 MB, free: 4.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001081/0.02763, allocations: 36.83 kB / 285.6 MB, free: 4.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.02765, allocations: 19.92 kB / 285.7 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006453/0.02829, allocations: 1.166 MB / 286.8 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.02829, allocations: 0 / 286.8 MB, free: 2.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.02857, allocations: 205.1 kB / 287 MB, free: 2.762 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.941e-05/0.02863, allocations: 35.72 kB / 287.1 MB, free: 2.727 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.02865, allocations: 7.984 kB / 287.1 MB, free: 2.719 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.239e-05/0.02874, allocations: 12 kB / 287.1 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.054e-05/0.0288, allocations: 27.94 kB / 287.1 MB, free: 2.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.02881, allocations: 12.08 kB / 287.1 MB, free: 2.668 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.732e-05/0.02888, allocations: 74.78 kB / 287.2 MB, free: 2.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02888, allocations: 0 / 287.2 MB, free: 2.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000333/0.02921, allocations: 91.84 kB / 287.3 MB, free: 2.5 MB / 266.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: 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.0001192/0.02933, allocations: 88.3 kB / 287.4 MB, free: 2.402 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003172/0.02964, allocations: 235 kB / 287.6 MB, free: 2.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.02965, allocations: 4.062 kB / 287.6 MB, free: 2.156 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.02976, allocations: 175.4 kB / 287.8 MB, free: 1.969 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.02989, allocations: 36.47 kB / 287.8 MB, free: 1.934 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009314/0.03083, allocations: 0.5946 MB / 288.4 MB, free: 1.312 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.604e-05/0.03087, allocations: 92.55 kB / 288.5 MB, free: 1.203 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.188e-05/0.03093, allocations: 26.28 kB / 288.5 MB, free: 1.18 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.136e-05/0.03102, allocations: 95.28 kB / 288.6 MB, free: 1.086 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.03103, allocations: 0 / 288.6 MB, free: 1.086 MB / 266.7 MB Notification: Performance of Templates: time 0.08975/0.1208, allocations: 3.119 MB / 291.7 MB, free: 24.94 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7184134423732758]