Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.007642/0.007642, allocations: 106.7 kB / 21.98 MB, free: 5.223 MB / 14.72 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.002079/0.002079, allocations: 216.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.414/1.414, allocations: 230.6 MB / 259 MB, free: 8.043 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 67.89 kB / 379.8 MB, free: 2.652 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2586, allocations: 53.37 MB / 433.2 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004715/0.2633, allocations: 3.186 MB / 436.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.2651, allocations: 0.8295 MB / 437.2 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002085/0.2653, allocations: 11.94 kB / 437.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.2655, allocations: 55.42 kB / 437.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002223/0.2657, allocations: 103 kB / 437.4 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004481/0.2662, allocations: 131.7 kB / 437.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005221/0.2667, allocations: 418.2 kB / 437.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.2669, allocations: 96.33 kB / 438 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.2672, allocations: 171.4 kB / 438.2 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.2675, allocations: 175.2 kB / 438.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.721e-05/0.2675, allocations: 36 kB / 438.4 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.555e-05/0.2676, allocations: 40 kB / 438.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.071e-05/0.2677, allocations: 83.69 kB / 438.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001875/0.2679, allocations: 183.1 kB / 438.7 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005435/0.2684, allocations: 431.5 kB / 439.1 MB, free: 1.031 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2684, allocations: 4 kB / 439.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2684, allocations: 0 / 439.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.2684, allocations: 0 / 439.1 MB, free: 1.027 MB / 334.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.001105/0.2695, allocations: 0.5869 MB / 439.7 MB, free: 416 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2696, allocations: 16.03 kB / 439.7 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.2698, allocations: 52.64 kB / 439.8 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004402/0.2702, allocations: 223.5 kB / 440 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.2703, allocations: 84.61 kB / 440.1 MB, free: 0 / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.763e-05/0.2704, allocations: 28.42 kB / 440.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005982/0.271, allocations: 342.8 kB / 440.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.271, allocations: 0 / 440.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.271, allocations: 16 kB / 440.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.2711, allocations: 8 kB / 440.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004596/0.2715, allocations: 218.5 kB / 440.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.2736, allocations: 1.318 MB / 442 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003542/0.2739, allocations: 154.6 kB / 442.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.2741, allocations: 84.77 kB / 442.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.2741, allocations: 4 kB / 442.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003028/0.2744, allocations: 163.3 kB / 442.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.613e-06/0.2744, allocations: 0 / 442.4 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001113/0.2755, allocations: 332.7 kB / 442.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.384e-05/0.2756, allocations: 114.7 kB / 442.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003023/0.2759, allocations: 261.8 kB / 443.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.276, allocations: 33.7 kB / 443.1 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.2761, allocations: 212.3 kB / 443.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.2762, allocations: 71.38 kB / 443.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.925e-05/0.2763, allocations: 62.03 kB / 443.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002211/0.2766, allocations: 342.8 kB / 443.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.2767, allocations: 76.61 kB / 443.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/0.277, allocations: 173.5 kB / 444 MB, free: 11.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003825/0.2774, allocations: 236.5 kB / 444.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2774, allocations: 0 / 444.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007226/0.2781, allocations: 348.2 kB / 444.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.2781, allocations: 11.98 kB / 444.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.2781, allocations: 4 kB / 444.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002707/0.2784, allocations: 57.16 kB / 444.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.2787, allocations: 55.92 kB / 444.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.2802, allocations: 1.476 MB / 446.2 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.2805, allocations: 51.84 kB / 446.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.2805, allocations: 16 kB / 446.3 MB, free: 9.398 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.000184/0.2807, allocations: 145.8 kB / 446.4 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.02e-05/0.2807, allocations: 23.86 kB / 446.4 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.924e-05/0.2808, allocations: 38.2 kB / 446.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2808, allocations: 0 / 446.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.2808, allocations: 0 / 446.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.2808, allocations: 0 / 446.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003816/0.2812, allocations: 320.4 kB / 446.8 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.2812, allocations: 0 / 446.8 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.2814, allocations: 39.92 kB / 446.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001973/0.2816, allocations: 52.75 kB / 446.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.2816, allocations: 7.984 kB / 446.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.2829, allocations: 1.318 MB / 448.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2829, allocations: 0 / 448.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000756/0.2837, allocations: 352.4 kB / 448.5 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.2838, allocations: 35.98 kB / 448.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.739e-05/0.2838, allocations: 12 kB / 448.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.284, allocations: 19.98 kB / 448.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.76e-05/0.2841, allocations: 39.86 kB / 448.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.2841, allocations: 4 kB / 448.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.2843, allocations: 189.2 kB / 448.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2843, allocations: 0 / 448.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000385/0.2847, allocations: 91.78 kB / 448.9 MB, free: 6.543 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.0001418/0.2848, allocations: 111.1 kB / 449 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006573/0.2855, allocations: 294.5 kB / 449.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2855, allocations: 4 kB / 449.3 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.2858, allocations: 203.1 kB / 449.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.2861, allocations: 43.12 kB / 449.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.2877, allocations: 0.7095 MB / 450.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004535/0.2881, allocations: 0.7675 MB / 451 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.895e-05/0.2882, allocations: 27.42 kB / 451.1 MB, free: 4.309 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2882, allocations: 0 / 451.1 MB, free: 4.309 MB / 350.1 MB Notification: Performance of Templates: time 0.007581/0.2958, allocations: 4.704 MB / 455.8 MB, free: 15.61 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.6875261820387095]