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.001704/0.001704, allocations: 74.25 kB / 21.24 MB, free: 0.5469 MB / 14.72 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.0022/0.0022, allocations: 159.3 kB / 24.5 MB, free: 3.719 MB / 14.72 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.525/1.525, allocations: 177.2 MB / 204.9 MB, free: 9.023 MB / 190.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+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 0.001659/0.001659, allocations: 51.2 kB / 325.6 MB, free: 424 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1052, allocations: 53.34 MB / 378.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004332/0.1095, allocations: 2.911 MB / 381.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.111, allocations: 0.7906 MB / 382.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.1111, allocations: 8 kB / 382.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.1113, allocations: 51.44 kB / 382.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001981/0.1115, allocations: 111 kB / 382.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.1118, allocations: 123.8 kB / 382.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005035/0.1123, allocations: 422.1 kB / 383.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.1125, allocations: 104.2 kB / 383.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.1128, allocations: 163.5 kB / 383.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.113, allocations: 151.2 kB / 383.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.057e-05/0.1131, allocations: 43.94 kB / 383.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.164e-05/0.1132, allocations: 40 kB / 383.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.75e-05/0.1133, allocations: 75.77 kB / 383.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.1134, allocations: 159.2 kB / 384 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004885/0.1139, allocations: 434.2 kB / 384.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1139, allocations: 0 / 384.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1139, allocations: 0 / 384.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1139, allocations: 0 / 384.5 MB, free: 10.18 MB / 350.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.001075/0.115, allocations: 0.5792 MB / 385.1 MB, free: 9.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.115, allocations: 12.03 kB / 385.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002245/0.1153, allocations: 52.64 kB / 385.1 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003839/0.1157, allocations: 227.5 kB / 385.3 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.1158, allocations: 132 kB / 385.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.795e-05/0.1158, allocations: 36.38 kB / 385.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006329/0.1165, allocations: 398.2 kB / 385.9 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.1165, allocations: 3.938 kB / 385.9 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.338e-05/0.1165, allocations: 12 kB / 385.9 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.1165, allocations: 8 kB / 385.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004388/0.117, allocations: 222.5 kB / 386.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.1188, allocations: 1.187 MB / 387.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003388/0.1192, allocations: 158.5 kB / 387.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.1193, allocations: 84.83 kB / 387.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.1193, allocations: 0 / 387.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003115/0.1197, allocations: 220.4 kB / 387.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.293e-06/0.1197, allocations: 0 / 387.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001107/0.1208, allocations: 322.5 kB / 388.1 MB, free: 6.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.717e-05/0.1208, allocations: 106.8 kB / 388.2 MB, free: 6.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002513/0.1211, allocations: 249.8 kB / 388.4 MB, free: 5.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.1211, allocations: 29.7 kB / 388.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.1213, allocations: 216.2 kB / 388.7 MB, free: 5.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.489e-05/0.1214, allocations: 71.42 kB / 388.7 MB, free: 5.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.1215, allocations: 69.97 kB / 388.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1216, allocations: 330.8 kB / 389.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.1218, allocations: 84.56 kB / 389.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002688/0.1221, allocations: 224.9 kB / 389.4 MB, free: 4.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003787/0.1224, allocations: 244.4 kB / 389.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1224, allocations: 3.938 kB / 389.7 MB, free: 4.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007041/0.1231, allocations: 332.7 kB / 390 MB, free: 4.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1232, allocations: 15.97 kB / 390 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1232, allocations: 0 / 390 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.1234, allocations: 52.81 kB / 390.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002754/0.1237, allocations: 63.91 kB / 390.1 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001436/0.1251, allocations: 1.438 MB / 391.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.1254, allocations: 39.77 kB / 391.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.1254, allocations: 16 kB / 391.6 MB, free: 2.52 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.0001575/0.1256, allocations: 157.8 kB / 391.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.244e-05/0.1256, allocations: 31.8 kB / 391.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.085e-05/0.1257, allocations: 34.27 kB / 391.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1257, allocations: 0 / 391.8 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1257, allocations: 3.938 kB / 391.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1257, allocations: 3.984 kB / 391.9 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.1259, allocations: 229.2 kB / 392.1 MB, free: 2.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.126, allocations: 4 kB / 392.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.1261, allocations: 35.97 kB / 392.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001872/0.1263, allocations: 56.81 kB / 392.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.1264, allocations: 4 kB / 392.2 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/0.128, allocations: 1.307 MB / 393.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.128, allocations: 0 / 393.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.1291, allocations: 348.8 kB / 393.8 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.1292, allocations: 31.88 kB / 393.9 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.253e-05/0.1293, allocations: 7.984 kB / 393.9 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.1296, allocations: 19.98 kB / 393.9 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.1297, allocations: 32.08 kB / 393.9 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.1297, allocations: 11.98 kB / 393.9 MB, free: 56 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002534/0.13, allocations: 165.2 kB / 394.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.13, allocations: 0 / 394.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006953/0.1306, allocations: 91.78 kB / 394.2 MB, free: 15.8 MB / 366.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.00016/0.1308, allocations: 107.2 kB / 394.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008949/0.1317, allocations: 306.8 kB / 394.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1317, allocations: 4 kB / 394.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004906/0.1322, allocations: 190.6 kB / 394.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.1326, allocations: 36.41 kB / 394.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/0.1349, allocations: 0.6885 MB / 395.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.1351, allocations: 164.8 kB / 395.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.1353, allocations: 26.28 kB / 395.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.15e-05/0.1354, allocations: 24.5 kB / 395.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1354, allocations: 0 / 395.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of Templates: time 0.01123/0.1466, allocations: 2.898 MB / 398.6 MB, free: 11.34 MB / 366.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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: 4.574366680928506]