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.000961/0.000961, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001174/0.001174, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 18.57 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 1.06/1.06, allocations: 177.1 MB / 205 MB, free: 5.273 MB / 186.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.383e-06/1.383e-06, allocations: 0 / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.272e-05/2.411e-05, allocations: 2.312 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00702/0.007044, allocations: 3.15 MB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004252/0.0113, allocations: 0.8138 MB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.01145, allocations: 8 kB / 277 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001649/0.01161, allocations: 55.42 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001754/0.01179, allocations: 114.9 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003797/0.01217, allocations: 127.7 kB / 277.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003858/0.01255, allocations: 433.9 kB / 277.7 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.01275, allocations: 92.38 kB / 277.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003065/0.01306, allocations: 251.5 kB / 278 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.01323, allocations: 123.7 kB / 278.1 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003063/0.0163, allocations: 36 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.886e-05/0.01639, allocations: 40 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.387e-05/0.01645, allocations: 83.66 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.01658, allocations: 131.7 kB / 278.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.01693, allocations: 294.8 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.01694, allocations: 0 / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.01694, allocations: 4 kB / 278.7 MB, free: 11.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.01694, allocations: 0 / 278.7 MB, free: 11.61 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.0008637/0.01781, allocations: 0.6791 MB / 279.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.01785, allocations: 12.03 kB / 279.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001889/0.01804, allocations: 80.64 kB / 279.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.01836, allocations: 229.6 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-05/0.01845, allocations: 128 kB / 279.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.18e-05/0.01851, allocations: 36.38 kB / 279.9 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004286/0.01893, allocations: 346.7 kB / 280.2 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.01895, allocations: 192 / 280.2 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.01898, allocations: 24.12 kB / 280.2 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.01899, allocations: 12 kB / 280.2 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003245/0.02223, allocations: 123.8 kB / 280.4 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.02363, allocations: 1.358 MB / 281.7 MB, free: 8.387 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.02387, allocations: 135 kB / 281.9 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.702e-05/0.02397, allocations: 59.66 kB / 281.9 MB, free: 8.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.02399, allocations: 4 kB / 281.9 MB, free: 8.176 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002155/0.02421, allocations: 191.3 kB / 282.1 MB, free: 7.949 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.02421, allocations: 0 / 282.1 MB, free: 7.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006573/0.02487, allocations: 260.3 kB / 282.4 MB, free: 7.688 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.701e-05/0.02492, allocations: 102.8 kB / 282.5 MB, free: 7.562 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.02514, allocations: 292.2 kB / 282.7 MB, free: 7.262 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003025/0.02816, allocations: 33.64 kB / 282.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.0283, allocations: 258.9 kB / 283 MB, free: 6.965 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.371e-05/0.02835, allocations: 67.44 kB / 283.1 MB, free: 6.898 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.014e-05/0.02844, allocations: 71.62 kB / 283.2 MB, free: 6.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.02858, allocations: 0.5117 MB / 283.7 MB, free: 6.297 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.947e-05/0.02867, allocations: 44.62 kB / 283.7 MB, free: 6.254 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.02885, allocations: 232.5 kB / 283.9 MB, free: 5.953 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000236/0.02909, allocations: 217.5 kB / 284.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.02909, allocations: 0 / 284.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004425/0.02954, allocations: 279.5 kB / 284.4 MB, free: 5.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.02955, allocations: 8.031 kB / 284.4 MB, free: 5.402 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.02956, allocations: 4 kB / 284.4 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001934/0.02976, allocations: 47.58 kB / 284.5 MB, free: 5.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.02995, allocations: 71.84 kB / 284.6 MB, free: 5.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001109/0.03106, allocations: 1.981 MB / 286.5 MB, free: 3.176 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003166/0.03423, allocations: 39.77 kB / 286.6 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.03425, allocations: 15.94 kB / 286.6 MB, free: 3.121 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.0001203/0.03437, allocations: 176.6 kB / 286.8 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.667e-05/0.03441, allocations: 35.86 kB / 286.8 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.412e-05/0.03444, allocations: 26.27 kB / 286.8 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.03445, allocations: 4 kB / 286.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.03445, allocations: 0 / 286.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.03445, allocations: 3.984 kB / 286.8 MB, free: 2.867 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.03469, allocations: 240.3 kB / 287.1 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.03469, allocations: 4 kB / 287.1 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001321/0.03482, allocations: 39.92 kB / 287.1 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.03494, allocations: 51.58 kB / 287.2 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.03496, allocations: 0 / 287.2 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009027/0.03586, allocations: 1.751 MB / 288.9 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.03586, allocations: 128 / 288.9 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00039/0.03625, allocations: 268.6 kB / 289.2 MB, free: 344 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.663e-05/0.03632, allocations: 39.78 kB / 289.2 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.03634, allocations: 3.984 kB / 289.2 MB, free: 300 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.545e-05/0.03644, allocations: 16 kB / 289.2 MB, free: 284 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.477e-05/0.03651, allocations: 31.88 kB / 289.3 MB, free: 252 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.03653, allocations: 8 kB / 289.3 MB, free: 244 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001122/0.03664, allocations: 193.1 kB / 289.5 MB, free: 48 kB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.03664, allocations: 4.031 kB / 289.5 MB, free: 44 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.1468/0.1834, allocations: 94.53 kB / 289.6 MB, free: 25.56 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.0001594/0.1836, allocations: 103.6 kB / 289.7 MB, free: 25.47 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005562/0.1841, allocations: 322.7 kB / 290 MB, free: 25.29 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1841, allocations: 1.125 kB / 290 MB, free: 25.29 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.1843, allocations: 236.4 kB / 290.2 MB, free: 25.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.1845, allocations: 31.17 kB / 290.2 MB, free: 25.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.1858, allocations: 0.6234 MB / 290.9 MB, free: 24.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.378e-05/0.1858, allocations: 92.09 kB / 291 MB, free: 24.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.236e-05/0.1859, allocations: 27.36 kB / 291 MB, free: 24.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.511e-05/0.186, allocations: 23.97 kB / 291 MB, free: 24.74 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.186, allocations: 0 / 291 MB, free: 24.74 MB / 266.7 MB Notification: Performance of Templates: time 0.006145/0.1921, allocations: 2.969 MB / 294 MB, free: 24.49 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 -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: 3.382793080061674]