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.001362/0.001362, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001021/0.001021, allocations: 165.2 kB / 24.99 MB, free: 8.219 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.9539/0.9539, allocations: 177 MB / 205.2 MB, free: 5.52 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.883e-06/1.883e-06, allocations: 0 / 273 MB, free: 1.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.903e-05/3.091e-05, allocations: 5.406 kB / 273 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004291/0.004322, allocations: 3.155 MB / 276.2 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.00566, allocations: 0.806 MB / 277 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.005836, allocations: 4 kB / 277 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001797/0.006016, allocations: 59.44 kB / 277 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.006195, allocations: 110.9 kB / 277.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003991/0.006594, allocations: 127.7 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003893/0.006983, allocations: 433.9 kB / 277.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001936/0.007177, allocations: 104.3 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003488/0.007526, allocations: 243.5 kB / 278 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001761/0.007702, allocations: 135.6 kB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.281e-05/0.007745, allocations: 32 kB / 278.2 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.983e-05/0.007814, allocations: 40 kB / 278.2 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.781e-05/0.007872, allocations: 79.72 kB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.00798, allocations: 131.7 kB / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.008289, allocations: 294.8 kB / 278.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.008293, allocations: 4 kB / 278.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.008294, allocations: 0 / 278.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.0083, allocations: 0 / 278.7 MB, free: 11.94 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.0007847/0.009085, allocations: 0.6713 MB / 279.4 MB, free: 11.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.009124, allocations: 11.98 kB / 279.4 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.009304, allocations: 88.64 kB / 279.5 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002973/0.009601, allocations: 233.6 kB / 279.7 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.667e-05/0.009698, allocations: 132 kB / 279.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/0.009741, allocations: 32.38 kB / 279.9 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004021/0.01014, allocations: 350.7 kB / 280.2 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.01015, allocations: 192 / 280.2 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.01018, allocations: 20.12 kB / 280.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.01019, allocations: 8 kB / 280.3 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002187/0.01041, allocations: 127.8 kB / 280.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.01165, allocations: 1.35 MB / 281.7 MB, free: 8.715 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002323/0.01188, allocations: 131.1 kB / 281.9 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.213e-05/0.01196, allocations: 55.66 kB / 281.9 MB, free: 8.516 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.01198, allocations: 4 kB / 281.9 MB, free: 8.512 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.01218, allocations: 203.3 kB / 282.1 MB, free: 8.273 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.243e-06/0.01218, allocations: 0 / 282.1 MB, free: 8.273 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006088/0.01279, allocations: 248.7 kB / 282.4 MB, free: 8.023 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.01284, allocations: 114.8 kB / 282.5 MB, free: 7.887 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.01303, allocations: 284.2 kB / 282.7 MB, free: 7.594 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.01305, allocations: 33.69 kB / 282.8 MB, free: 7.555 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.01316, allocations: 258.9 kB / 283 MB, free: 7.297 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.563e-05/0.01321, allocations: 71.42 kB / 283.1 MB, free: 7.227 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.273e-05/0.01328, allocations: 71.64 kB / 283.2 MB, free: 7.148 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.0134, allocations: 0.5039 MB / 283.7 MB, free: 6.633 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.97e-05/0.01348, allocations: 44.56 kB / 283.7 MB, free: 6.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.01364, allocations: 248.5 kB / 284 MB, free: 6.273 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002067/0.01384, allocations: 209.5 kB / 284.2 MB, free: 6.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.01385, allocations: 0 / 284.2 MB, free: 6.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003702/0.01422, allocations: 283.2 kB / 284.4 MB, free: 5.734 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.01423, allocations: 4 kB / 284.4 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.01424, allocations: 4.344 kB / 284.5 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.01441, allocations: 51.58 kB / 284.5 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.01456, allocations: 63.86 kB / 284.6 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.01559, allocations: 1.985 MB / 286.6 MB, free: 3.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001414/0.01573, allocations: 39.77 kB / 286.6 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.01575, allocations: 15.94 kB / 286.6 MB, free: 3.449 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.0001106/0.01586, allocations: 176.5 kB / 286.8 MB, free: 3.266 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.01589, allocations: 35.86 kB / 286.8 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.01592, allocations: 26.27 kB / 286.8 MB, free: 3.203 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.01593, allocations: 4.062 kB / 286.8 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.01593, allocations: 4 kB / 286.8 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.01593, allocations: 0 / 286.8 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.01612, allocations: 244.3 kB / 287.1 MB, free: 2.922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.01612, allocations: 0 / 287.1 MB, free: 2.922 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.01623, allocations: 39.92 kB / 287.1 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00011/0.01634, allocations: 43.66 kB / 287.2 MB, free: 2.836 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.556e-05/0.01636, allocations: 3.984 kB / 287.2 MB, free: 2.832 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008183/0.01718, allocations: 1.748 MB / 288.9 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.01718, allocations: 3.984 kB / 288.9 MB, free: 0.957 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/0.01754, allocations: 264 kB / 289.2 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.566e-05/0.0176, allocations: 39.77 kB / 289.2 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.902e-05/0.01763, allocations: 8 kB / 289.2 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.442e-05/0.01771, allocations: 15.98 kB / 289.2 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.378e-05/0.01778, allocations: 35.88 kB / 289.3 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.01779, allocations: 4 kB / 289.3 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000114/0.0179, allocations: 197.1 kB / 289.5 MB, free: 384 kB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.0179, allocations: 0 / 289.5 MB, free: 384 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002992/0.0182, allocations: 91.78 kB / 289.6 MB, free: 292 kB / 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.0001153/0.01832, allocations: 111.2 kB / 289.7 MB, free: 172 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004281/0.01875, allocations: 324.3 kB / 290 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01875, allocations: 0 / 290 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.01893, allocations: 242.6 kB / 290.2 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002014/0.01913, allocations: 49.03 kB / 290.3 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.02038, allocations: 0.6157 MB / 290.9 MB, free: 14.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.421e-05/0.02044, allocations: 92.56 kB / 291 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.768e-05/0.02052, allocations: 26.28 kB / 291 MB, free: 14.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.417e-05/0.02056, allocations: 20.5 kB / 291 MB, free: 14.73 MB / 282.7 MB Notification: Performance of SimCode: time 1.583e-06/0.02056, allocations: 0 / 291 MB, free: 14.73 MB / 282.7 MB Notification: Performance of Templates: time 0.005412/0.02597, allocations: 2.953 MB / 294 MB, free: 11.82 MB / 282.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: 3.063700000056997]