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.0007814/0.0007814, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001228/0.002009, allocations: 457.8 kB / 10.45 MB, free: 244 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.0007639/0.0007639, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001049/0.001813, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.969/0.969, allocations: 177.5 MB / 190 MB, free: 4.766 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08578/1.055, allocations: 53.87 MB / 243.9 MB, free: 14.83 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 3.306e-06/3.306e-06, allocations: 4 kB / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.299e-05/2.63e-05, allocations: 2.312 kB / 245.2 MB, free: 13.51 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004457/0.004483, allocations: 3.184 MB / 248.4 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.006068, allocations: 0.8291 MB / 249.2 MB, free: 9.473 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.006273, allocations: 11.94 kB / 249.3 MB, free: 9.461 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.006424, allocations: 59.42 kB / 249.3 MB, free: 9.402 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.006639, allocations: 106.9 kB / 249.4 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.006996, allocations: 123.7 kB / 249.5 MB, free: 9.176 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004469/0.007442, allocations: 437.9 kB / 250 MB, free: 8.746 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.007636, allocations: 106.9 kB / 250.1 MB, free: 8.641 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004164/0.008052, allocations: 276 kB / 250.3 MB, free: 8.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000217/0.008269, allocations: 123.7 kB / 250.5 MB, free: 8.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.336e-05/0.008323, allocations: 36 kB / 250.5 MB, free: 8.215 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.008432, allocations: 36 kB / 250.5 MB, free: 8.18 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.008498, allocations: 63.75 kB / 250.6 MB, free: 8.117 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.008615, allocations: 107.8 kB / 250.7 MB, free: 8.012 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003684/0.008983, allocations: 266.9 kB / 251 MB, free: 7.75 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.335e-05/0.008996, allocations: 0 / 251 MB, free: 7.75 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.008998, allocations: 4 kB / 251 MB, free: 7.746 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.009009, allocations: 0 / 251 MB, free: 7.746 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.0008519/0.009861, allocations: 0.6322 MB / 251.6 MB, free: 7.09 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.009896, allocations: 12.03 kB / 251.6 MB, free: 7.078 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002241/0.01012, allocations: 142 kB / 251.7 MB, free: 6.922 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000276/0.0104, allocations: 198.1 kB / 251.9 MB, free: 6.699 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.692e-05/0.01048, allocations: 132 kB / 252.1 MB, free: 6.547 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.82e-05/0.01053, allocations: 32.38 kB / 252.1 MB, free: 6.516 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003576/0.01089, allocations: 327.3 kB / 252.4 MB, free: 6.16 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.0109, allocations: 192 / 252.4 MB, free: 6.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.868e-05/0.01093, allocations: 20.12 kB / 252.4 MB, free: 6.141 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.01094, allocations: 8 kB / 252.4 MB, free: 6.133 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000156/0.0111, allocations: 92.47 kB / 252.5 MB, free: 6.043 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.01236, allocations: 1.068 MB / 253.6 MB, free: 4.902 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.01256, allocations: 106.5 kB / 253.7 MB, free: 4.789 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.25e-05/0.01262, allocations: 44.77 kB / 253.8 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.01264, allocations: 4 kB / 253.8 MB, free: 4.738 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.01283, allocations: 173.2 kB / 253.9 MB, free: 4.535 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 1.152e-06/0.01283, allocations: 4 kB / 253.9 MB, free: 4.531 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005289/0.01336, allocations: 193.7 kB / 254.1 MB, free: 4.336 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.0134, allocations: 59.39 kB / 254.2 MB, free: 4.266 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001719/0.01357, allocations: 233.2 kB / 254.4 MB, free: 4.023 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.01359, allocations: 29.7 kB / 254.4 MB, free: 3.988 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.0137, allocations: 208.1 kB / 254.6 MB, free: 3.777 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.786e-05/0.01376, allocations: 67.41 kB / 254.7 MB, free: 3.711 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.458e-05/0.01384, allocations: 65.95 kB / 254.8 MB, free: 3.641 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.01395, allocations: 338.8 kB / 255.1 MB, free: 3.301 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.914e-05/0.01401, allocations: 28.64 kB / 255.1 MB, free: 3.273 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.01411, allocations: 180.9 kB / 255.3 MB, free: 3.039 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.01425, allocations: 175.5 kB / 255.5 MB, free: 2.832 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.01425, allocations: 8 kB / 255.5 MB, free: 2.824 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003201/0.01457, allocations: 216.4 kB / 255.7 MB, free: 2.605 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.01459, allocations: 8 kB / 255.7 MB, free: 2.598 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.0146, allocations: 4 kB / 255.7 MB, free: 2.594 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001573/0.01475, allocations: 45.16 kB / 255.8 MB, free: 2.547 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.01499, allocations: 75.91 kB / 255.8 MB, free: 2.473 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008689/0.01586, allocations: 1.321 MB / 257.1 MB, free: 1.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.01604, allocations: 39.78 kB / 257.2 MB, free: 1.031 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.01605, allocations: 11.98 kB / 257.2 MB, free: 1.02 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 0.0001042/0.01616, allocations: 133.2 kB / 257.3 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/0.01619, allocations: 23.98 kB / 257.3 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/0.01623, allocations: 34.2 kB / 257.4 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.01623, allocations: 8.062 kB / 257.4 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.01623, allocations: 0 / 257.4 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.01624, allocations: 3.984 kB / 257.4 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.01642, allocations: 161.7 kB / 257.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.01642, allocations: 0 / 257.6 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.01659, allocations: 39.97 kB / 257.6 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-05/0.01665, allocations: 27.86 kB / 257.6 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/0.01677, allocations: 52.67 kB / 257.7 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.01678, allocations: 4 kB / 257.7 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000714/0.01749, allocations: 1.166 MB / 258.8 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.0175, allocations: 3.938 kB / 258.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002971/0.01779, allocations: 205.8 kB / 259 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.01782, allocations: 8 kB / 259.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.432e-05/0.01792, allocations: 15.98 kB / 259.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.541e-05/0.01798, allocations: 23.95 kB / 259.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.01799, allocations: 7.984 kB / 259.1 MB, free: 14.98 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.834e-05/0.01807, allocations: 74.78 kB / 259.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01807, allocations: 0 / 259.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003396/0.01841, allocations: 95.81 kB / 259.3 MB, free: 14.82 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.0001183/0.01853, allocations: 84.36 kB / 259.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003435/0.01887, allocations: 255.4 kB / 259.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/0.01889, allocations: 4 kB / 259.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001763/0.01906, allocations: 179.5 kB / 259.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.01937, allocations: 333.4 kB / 260.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003149/0.02252, allocations: 0.6351 MB / 260.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.412e-05/0.02257, allocations: 96.3 kB / 260.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.936e-05/0.02267, allocations: 26.28 kB / 260.9 MB, free: 13.08 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.02279, allocations: 91.34 kB / 260.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of SimCode: time 1.693e-06/0.02279, allocations: 0 / 260.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of Templates: time 0.005044/0.02783, allocations: 3.245 MB / 264.2 MB, free: 9.785 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7761578112840652]