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.0007286/0.0007286, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009194/0.001648, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0006763/0.0006763, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008443/0.001521, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9913/0.9913, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09529/1.087, allocations: 53.87 MB / 243.8 MB, free: 14.9 MB / 250.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.242e-06/1.242e-06, allocations: 3.938 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.84e-05/1.964e-05, allocations: 2.312 kB / 245 MB, free: 13.63 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003134/0.003154, allocations: 3.185 MB / 248.2 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001544/0.004698, allocations: 0.8369 MB / 249.1 MB, free: 9.578 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.004886, allocations: 4 kB / 249.1 MB, free: 9.574 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.004995, allocations: 67.36 kB / 249.1 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001654/0.00516, allocations: 98.94 kB / 249.2 MB, free: 9.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002952/0.005455, allocations: 131.6 kB / 249.4 MB, free: 9.281 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.0058, allocations: 437.9 kB / 249.8 MB, free: 8.852 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.00596, allocations: 102.9 kB / 249.9 MB, free: 8.754 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003263/0.006286, allocations: 276.1 kB / 250.2 MB, free: 8.484 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.006456, allocations: 127.6 kB / 250.3 MB, free: 8.359 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.069e-05/0.006497, allocations: 36 kB / 250.3 MB, free: 8.324 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.424e-05/0.006581, allocations: 36 kB / 250.3 MB, free: 8.289 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.631e-05/0.006628, allocations: 59.81 kB / 250.4 MB, free: 8.23 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.223e-05/0.00672, allocations: 115.8 kB / 250.5 MB, free: 8.117 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.00699, allocations: 259 kB / 250.8 MB, free: 7.863 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.668e-05/0.007006, allocations: 4 kB / 250.8 MB, free: 7.859 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.007007, allocations: 0 / 250.8 MB, free: 7.859 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.007027, allocations: 0 / 250.8 MB, free: 7.859 MB / 250.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.0007936/0.00782, allocations: 0.636 MB / 251.4 MB, free: 7.199 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.007858, allocations: 12.03 kB / 251.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002199/0.008078, allocations: 142 kB / 251.6 MB, free: 7.031 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.00832, allocations: 194.1 kB / 251.8 MB, free: 6.812 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.054e-05/0.008401, allocations: 136 kB / 251.9 MB, free: 6.656 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.516e-05/0.008436, allocations: 32.38 kB / 251.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002693/0.008705, allocations: 319.3 kB / 252.2 MB, free: 6.277 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.008716, allocations: 192 / 252.2 MB, free: 6.277 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.008736, allocations: 20.12 kB / 252.2 MB, free: 6.258 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.008744, allocations: 12 kB / 252.3 MB, free: 6.246 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001122/0.008856, allocations: 84.48 kB / 252.3 MB, free: 6.164 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009277/0.009784, allocations: 1.072 MB / 253.4 MB, free: 5.02 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/0.009939, allocations: 109.1 kB / 253.5 MB, free: 4.91 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.226e-05/0.009981, allocations: 40.83 kB / 253.6 MB, free: 4.867 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.009998, allocations: 4 kB / 253.6 MB, free: 4.863 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001543/0.01015, allocations: 185.2 kB / 253.7 MB, free: 4.648 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.522e-06/0.01015, allocations: 0 / 253.7 MB, free: 4.648 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004055/0.01056, allocations: 189.7 kB / 253.9 MB, free: 4.457 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.01059, allocations: 51.41 kB / 254 MB, free: 4.395 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.01071, allocations: 233.2 kB / 254.2 MB, free: 4.156 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.01073, allocations: 33.7 kB / 254.2 MB, free: 4.117 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.386e-05/0.01081, allocations: 212 kB / 254.4 MB, free: 3.902 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.249e-05/0.01086, allocations: 67.42 kB / 254.5 MB, free: 3.836 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.072e-05/0.01092, allocations: 69.94 kB / 254.6 MB, free: 3.762 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.01099, allocations: 334.8 kB / 254.9 MB, free: 3.426 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.635e-05/0.01103, allocations: 32.62 kB / 254.9 MB, free: 3.395 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.569e-05/0.01113, allocations: 184.9 kB / 255.1 MB, free: 3.156 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001299/0.01126, allocations: 183.4 kB / 255.3 MB, free: 2.941 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.01126, allocations: 0 / 255.3 MB, free: 2.941 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002396/0.0115, allocations: 204.8 kB / 255.5 MB, free: 2.734 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.01151, allocations: 12.02 kB / 255.5 MB, free: 2.723 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.01152, allocations: 4 kB / 255.5 MB, free: 2.719 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001208/0.01164, allocations: 36.83 kB / 255.6 MB, free: 2.68 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.01181, allocations: 83.83 kB / 255.6 MB, free: 2.598 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007091/0.01252, allocations: 1.321 MB / 257 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.01265, allocations: 43.77 kB / 257 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.01266, allocations: 11.94 kB / 257 MB, free: 1.141 MB / 250.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 8.434e-05/0.01275, allocations: 133.9 kB / 257.1 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.01277, allocations: 23.91 kB / 257.2 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.676e-05/0.0128, allocations: 30.28 kB / 257.2 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.0128, allocations: 0 / 257.2 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.0128, allocations: 3.984 kB / 257.2 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.0128, allocations: 0 / 257.2 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.01293, allocations: 161.7 kB / 257.4 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.01293, allocations: 0 / 257.4 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.01306, allocations: 55.84 kB / 257.4 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.206e-05/0.0131, allocations: 23.84 kB / 257.4 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.247e-05/0.01318, allocations: 36.83 kB / 257.5 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.01319, allocations: 0 / 257.5 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005623/0.01375, allocations: 1.182 MB / 258.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.01376, allocations: 3.984 kB / 258.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.01398, allocations: 193.7 kB / 258.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.014, allocations: 8 kB / 258.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.95e-05/0.01406, allocations: 15.98 kB / 258.9 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.01411, allocations: 31.88 kB / 258.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.01412, allocations: 4 kB / 258.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.461e-05/0.01417, allocations: 78.88 kB / 259 MB, free: 15.03 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01417, allocations: 0 / 259 MB, free: 15.03 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002212/0.01439, allocations: 91.78 kB / 259.1 MB, free: 14.94 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 9.626e-05/0.01449, allocations: 84.41 kB / 259.2 MB, free: 14.85 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002645/0.01476, allocations: 244 kB / 259.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/0.01477, allocations: 4 kB / 259.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.01489, allocations: 182.4 kB / 259.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.01503, allocations: 52.48 kB / 259.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.0176, allocations: 0.6312 MB / 260.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.213e-05/0.01765, allocations: 92.56 kB / 260.3 MB, free: 13.58 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.715e-05/0.01773, allocations: 30.27 kB / 260.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.917e-05/0.01782, allocations: 95.3 kB / 260.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01783, allocations: 4 kB / 260.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of Templates: time 0.00546/0.02328, allocations: 3.358 MB / 263.8 MB, free: 10.14 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 -ignoreHideResult -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.539388512261212]