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.0007157/0.0007157, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009389/0.001655, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006727/0.0006727, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008232/0.001496, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.917/0.917, allocations: 177.2 MB / 189.6 MB, free: 5.297 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08466/1.002, allocations: 53.65 MB / 243.3 MB, free: 15.56 MB / 250.7 MB " [Timeout remaining time 179] 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 1.282e-06/1.282e-06, allocations: 0 / 244.5 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.261e-05/1.39e-05, allocations: 8.922 kB / 244.5 MB, free: 14.28 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.006387/0.006401, allocations: 3.185 MB / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.007604, allocations: 0.829 MB / 248.6 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.007727, allocations: 15.94 kB / 248.6 MB, free: 10.22 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.007829, allocations: 59.42 kB / 248.6 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.008, allocations: 102.9 kB / 248.7 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.008211, allocations: 127.7 kB / 248.9 MB, free: 9.938 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00026/0.008471, allocations: 433.9 kB / 249.3 MB, free: 9.512 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.008605, allocations: 106.9 kB / 249.4 MB, free: 9.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.008847, allocations: 272.1 kB / 249.7 MB, free: 9.145 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.00898, allocations: 131.6 kB / 249.8 MB, free: 9.016 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.543e-05/0.009016, allocations: 36 kB / 249.8 MB, free: 8.98 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.44e-05/0.00909, allocations: 40 kB / 249.9 MB, free: 8.941 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.521e-05/0.009135, allocations: 63.75 kB / 249.9 MB, free: 8.879 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.181e-05/0.009217, allocations: 107.8 kB / 250 MB, free: 8.773 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002275/0.009445, allocations: 263 kB / 250.3 MB, free: 8.516 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.009453, allocations: 3.938 kB / 250.3 MB, free: 8.512 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.009453, allocations: 0 / 250.3 MB, free: 8.512 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.009462, allocations: 0 / 250.3 MB, free: 8.512 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.0005726/0.01003, allocations: 0.6322 MB / 250.9 MB, free: 7.855 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.465e-05/0.01006, allocations: 12.03 kB / 250.9 MB, free: 7.844 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.01019, allocations: 138 kB / 251.1 MB, free: 7.691 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001798/0.01037, allocations: 198.1 kB / 251.3 MB, free: 7.469 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.981e-05/0.01043, allocations: 132 kB / 251.4 MB, free: 7.316 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.869e-05/0.01046, allocations: 32.38 kB / 251.4 MB, free: 7.285 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002473/0.01071, allocations: 327.3 kB / 251.7 MB, free: 6.93 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.01071, allocations: 192 / 251.7 MB, free: 6.93 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.01073, allocations: 20.06 kB / 251.8 MB, free: 6.91 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.01074, allocations: 8 kB / 251.8 MB, free: 6.902 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001036/0.01084, allocations: 84.55 kB / 251.8 MB, free: 6.82 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008665/0.01171, allocations: 1.06 MB / 252.9 MB, free: 5.684 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.01184, allocations: 110.5 kB / 253 MB, free: 5.566 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.395e-05/0.01189, allocations: 43.59 kB / 253.1 MB, free: 5.523 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.39e-05/0.0119, allocations: 4 kB / 253.1 MB, free: 5.52 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001281/0.01203, allocations: 173.2 kB / 253.2 MB, free: 5.316 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 9.72e-07/0.01203, allocations: 0 / 253.2 MB, free: 5.316 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003361/0.01237, allocations: 190.3 kB / 253.4 MB, free: 5.121 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.274e-05/0.01239, allocations: 59.41 kB / 253.5 MB, free: 5.051 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.01251, allocations: 229.2 kB / 253.7 MB, free: 4.816 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.01252, allocations: 29.7 kB / 253.7 MB, free: 4.781 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.138e-05/0.01259, allocations: 204.1 kB / 253.9 MB, free: 4.574 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.183e-05/0.01264, allocations: 79.39 kB / 254 MB, free: 4.496 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.361e-05/0.01269, allocations: 54.02 kB / 254.1 MB, free: 4.438 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.626e-05/0.01277, allocations: 338.8 kB / 254.4 MB, free: 4.098 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.608e-05/0.0128, allocations: 32.64 kB / 254.4 MB, free: 4.066 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.62e-05/0.0129, allocations: 196.8 kB / 254.6 MB, free: 3.816 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.01302, allocations: 179.5 kB / 254.8 MB, free: 3.605 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.01302, allocations: 0 / 254.8 MB, free: 3.605 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002138/0.01324, allocations: 216.4 kB / 255 MB, free: 3.387 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.538e-06/0.01325, allocations: 8 kB / 255 MB, free: 3.379 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.01325, allocations: 4 kB / 255 MB, free: 3.375 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.047e-05/0.01334, allocations: 45.16 kB / 255.1 MB, free: 3.328 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.0135, allocations: 78.91 kB / 255.1 MB, free: 3.254 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006531/0.01415, allocations: 1.332 MB / 256.5 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.01425, allocations: 35.78 kB / 256.5 MB, free: 1.805 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.01427, allocations: 15.98 kB / 256.5 MB, free: 1.789 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.536e-05/0.01435, allocations: 133.3 kB / 256.6 MB, free: 1.652 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.01439, allocations: 27.92 kB / 256.7 MB, free: 1.625 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.439e-05/0.01441, allocations: 26.27 kB / 256.7 MB, free: 1.602 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.01441, allocations: 4 kB / 256.7 MB, free: 1.598 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.01441, allocations: 0 / 256.7 MB, free: 1.598 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.01442, allocations: 8.016 kB / 256.7 MB, free: 1.59 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001259/0.01454, allocations: 157.7 kB / 256.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.01455, allocations: 4 kB / 256.9 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.01466, allocations: 43.91 kB / 256.9 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.211e-05/0.0147, allocations: 27.81 kB / 256.9 MB, free: 1.344 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.548e-05/0.01478, allocations: 44.8 kB / 257 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.738e-06/0.01479, allocations: 4 kB / 257 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004972/0.01529, allocations: 1.167 MB / 258.1 MB, free: 44 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.01529, allocations: 0 / 258.1 MB, free: 44 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002301/0.01552, allocations: 213.8 kB / 258.4 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.01554, allocations: 4 kB / 258.4 MB, free: 15.81 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.14e-05/0.0156, allocations: 15.98 kB / 258.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.49e-05/0.01564, allocations: 27.95 kB / 258.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.158e-06/0.01565, allocations: 7.984 kB / 258.4 MB, free: 15.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.721e-05/0.0157, allocations: 70.78 kB / 258.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.0157, allocations: 0 / 258.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001944/0.01589, allocations: 95.78 kB / 258.6 MB, free: 15.59 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 7.88e-05/0.01597, allocations: 88.39 kB / 258.7 MB, free: 15.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002501/0.01622, allocations: 242.3 kB / 258.9 MB, free: 15.24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.01623, allocations: 7.984 kB / 258.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.01636, allocations: 174.6 kB / 259.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.01648, allocations: 57.16 kB / 259.1 MB, free: 15 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.01888, allocations: 0.6312 MB / 259.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.586e-05/0.01892, allocations: 96.3 kB / 259.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.355e-05/0.01898, allocations: 26.28 kB / 259.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.981e-05/0.01907, allocations: 91.34 kB / 260 MB, free: 14.11 MB / 266.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01907, allocations: 0 / 260 MB, free: 14.11 MB / 266.7 MB Notification: Performance of Templates: time 0.004953/0.02403, allocations: 3.366 MB / 263.3 MB, free: 10.79 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 240] 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","",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.5964077012613416]