Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001789/0.001789, allocations: 115.5 kB / 18.41 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002088/0.002088, allocations: 192.3 kB / 21.35 MB, free: 1.738 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 222.9 MB / 247 MB, free: 4.082 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 47.91 kB / 358.7 MB, free: 8.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09408/0.09571, allocations: 49.44 MB / 408.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004463/0.1002, allocations: 3.127 MB / 411.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.1017, allocations: 0.7555 MB / 412 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.1019, allocations: 4 kB / 412 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.1021, allocations: 59.44 kB / 412.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.1023, allocations: 103 kB / 412.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003641/0.1027, allocations: 111.8 kB / 412.3 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005486/0.1033, allocations: 418.2 kB / 412.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002785/0.1035, allocations: 139.7 kB / 412.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/0.1038, allocations: 159.4 kB / 413 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002499/0.104, allocations: 171.2 kB / 413.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.471e-05/0.1041, allocations: 36 kB / 413.2 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.94e-05/0.1042, allocations: 36 kB / 413.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.35e-05/0.1043, allocations: 75.75 kB / 413.3 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000208/0.1045, allocations: 191.1 kB / 413.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004849/0.105, allocations: 422.2 kB / 413.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.105, allocations: 4 kB / 413.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.105, allocations: 0 / 413.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.105, allocations: 4 kB / 413.9 MB, free: 0.9062 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.001144/0.1062, allocations: 0.6584 MB / 414.5 MB, free: 204 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.1062, allocations: 15.88 kB / 414.6 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.499e-05/0.1063, allocations: 40.7 kB / 414.6 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004654/0.1068, allocations: 293.3 kB / 414.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-05/0.1069, allocations: 76.62 kB / 415 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.76e-05/0.107, allocations: 32.38 kB / 415 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005899/0.1076, allocations: 334.9 kB / 415.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.1076, allocations: 3.938 kB / 415.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.1076, allocations: 20 kB / 415.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.1076, allocations: 8 kB / 415.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.1081, allocations: 214.5 kB / 415.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.1101, allocations: 1.36 MB / 416.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.1105, allocations: 166.5 kB / 417.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.1107, allocations: 92.77 kB / 417.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.1107, allocations: 11.92 kB / 417.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002998/0.111, allocations: 155.2 kB / 417.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.633e-06/0.111, allocations: 0 / 417.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001188/0.1122, allocations: 405 kB / 417.7 MB, free: 12.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.83e-05/0.1123, allocations: 114.8 kB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002835/0.1126, allocations: 254.7 kB / 418.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.1127, allocations: 29.7 kB / 418.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.1128, allocations: 216.2 kB / 418.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.921e-05/0.1129, allocations: 79.36 kB / 418.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.113, allocations: 58.03 kB / 418.5 MB, free: 12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1132, allocations: 334.8 kB / 418.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.1134, allocations: 84.61 kB / 418.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.1136, allocations: 173.5 kB / 419 MB, free: 11.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003825/0.114, allocations: 237.2 kB / 419.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.852e-06/0.114, allocations: 8 kB / 419.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000746/0.1148, allocations: 348.4 kB / 419.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.1148, allocations: 11.98 kB / 419.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1148, allocations: 0 / 419.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003031/0.1152, allocations: 57 kB / 419.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002708/0.1154, allocations: 59.92 kB / 419.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/0.117, allocations: 1.568 MB / 421.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.1173, allocations: 47.72 kB / 421.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.1174, allocations: 8.094 kB / 421.4 MB, free: 8.863 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.0002134/0.1176, allocations: 153.8 kB / 421.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.465e-05/0.1176, allocations: 27.86 kB / 421.6 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.748e-05/0.1177, allocations: 30.11 kB / 421.6 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.1177, allocations: 7.984 kB / 421.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1177, allocations: 0 / 421.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.1177, allocations: 0 / 421.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003764/0.1181, allocations: 341.3 kB / 421.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1181, allocations: 0 / 421.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.1183, allocations: 43.92 kB / 422 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002082/0.1186, allocations: 52.75 kB / 422 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.1186, allocations: 7.984 kB / 422 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00132/0.1199, allocations: 1.426 MB / 423.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1199, allocations: 4.156 kB / 423.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000831/0.1208, allocations: 347.8 kB / 423.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.1209, allocations: 113 kB / 423.9 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.972e-05/0.121, allocations: 8 kB / 423.9 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.1211, allocations: 28.03 kB / 423.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.1212, allocations: 27.91 kB / 424 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.1213, allocations: 7.984 kB / 424 MB, free: 6.016 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002042/0.1215, allocations: 182 kB / 424.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1215, allocations: 0 / 424.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004079/0.1219, allocations: 91.78 kB / 424.2 MB, free: 5.746 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.0001499/0.1221, allocations: 119.2 kB / 424.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006762/0.1227, allocations: 314.4 kB / 424.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1228, allocations: 0 / 424.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003311/0.1231, allocations: 202.5 kB / 424.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.1234, allocations: 41.22 kB / 424.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.125, allocations: 0.7187 MB / 425.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004322/0.1255, allocations: 0.7675 MB / 426.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.466e-05/0.1256, allocations: 23.44 kB / 426.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1256, allocations: 0 / 426.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of Templates: time 0.1726/0.2982, allocations: 4.638 MB / 431.1 MB, free: 21.98 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.557091781054623]