Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.001738/0.001738, allocations: 123 kB / 17.79 MB, free: 5.266 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.001985/0.001985, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.454/1.454, allocations: 225.6 MB / 249.1 MB, free: 3.617 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 55.91 kB / 365.7 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1054, allocations: 52.13 MB / 417.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004394/0.1098, allocations: 2.89 MB / 420.7 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.111, allocations: 0.7322 MB / 421.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.1112, allocations: 7.938 kB / 421.4 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.1113, allocations: 47.5 kB / 421.5 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000195/0.1115, allocations: 99.12 kB / 421.6 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003334/0.1119, allocations: 95.81 kB / 421.7 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.1123, allocations: 370.4 kB / 422 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.1125, allocations: 91.28 kB / 422.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.1127, allocations: 135.6 kB / 422.2 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.1129, allocations: 163.2 kB / 422.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.012e-05/0.113, allocations: 36 kB / 422.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.033e-05/0.113, allocations: 28 kB / 422.5 MB, free: 8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.074e-05/0.1131, allocations: 71.77 kB / 422.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.1132, allocations: 159.2 kB / 422.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004124/0.1137, allocations: 366.5 kB / 423 MB, free: 7.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.1137, allocations: 0 / 423 MB, free: 7.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1137, allocations: 0 / 423 MB, free: 7.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.1137, allocations: 0 / 423 MB, free: 7.414 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001094/0.1148, allocations: 0.617 MB / 423.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.1148, allocations: 8.031 kB / 423.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.428e-05/0.1149, allocations: 70.72 kB / 423.7 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.311e-05/0.115, allocations: 32.75 kB / 423.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003992/0.1154, allocations: 265 kB / 424 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.851e-05/0.1154, allocations: 76.62 kB / 424.1 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.092e-05/0.1155, allocations: 32.36 kB / 424.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005352/0.116, allocations: 305.6 kB / 424.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.116, allocations: 0 / 424.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.1161, allocations: 12 kB / 424.4 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.1161, allocations: 11.94 kB / 424.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.1164, allocations: 186.2 kB / 424.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.1182, allocations: 1.131 MB / 425.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/0.1185, allocations: 146.6 kB / 425.9 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.1186, allocations: 68.83 kB / 426 MB, free: 4.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.1186, allocations: 4 kB / 426 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.1189, allocations: 166.1 kB / 426.1 MB, free: 4.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.1189, allocations: 0 / 426.1 MB, free: 4.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001094/0.12, allocations: 385.4 kB / 426.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.1201, allocations: 110.8 kB / 426.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.1204, allocations: 224.9 kB / 426.8 MB, free: 3.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.1204, allocations: 33.7 kB / 426.9 MB, free: 3.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1205, allocations: 192.5 kB / 427.1 MB, free: 3.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.403e-05/0.1206, allocations: 67.44 kB / 427.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.1207, allocations: 53.69 kB / 427.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1208, allocations: 338.8 kB / 427.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.121, allocations: 67.97 kB / 427.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.1212, allocations: 144.5 kB / 427.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002868/0.1215, allocations: 192.9 kB / 427.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1215, allocations: 0 / 427.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000455/0.1219, allocations: 272.5 kB / 428.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1219, allocations: 8 kB / 428.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.1219, allocations: 3.984 kB / 428.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002822/0.1222, allocations: 57.05 kB / 428.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/0.1224, allocations: 51.91 kB / 428.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.124, allocations: 1.572 MB / 429.9 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.1242, allocations: 35.86 kB / 429.9 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.1242, allocations: 12 kB / 429.9 MB, free: 8 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0001808/0.1244, allocations: 162.4 kB / 430.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.1244, allocations: 23.86 kB / 430.1 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.312e-05/0.1245, allocations: 26.19 kB / 430.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1245, allocations: 0 / 430.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1245, allocations: 4 kB / 430.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1245, allocations: 3.984 kB / 430.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003497/0.1248, allocations: 325.3 kB / 430.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.1248, allocations: 0 / 430.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001667/0.125, allocations: 31.92 kB / 430.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001902/0.1252, allocations: 56.81 kB / 430.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.1252, allocations: 8 kB / 430.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.1265, allocations: 1.414 MB / 432 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1265, allocations: 0 / 432 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000663/0.1271, allocations: 335.2 kB / 432.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.1273, allocations: 120.8 kB / 432.4 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.1273, allocations: 4 kB / 432.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.1275, allocations: 15.98 kB / 432.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.501e-05/0.1276, allocations: 32.02 kB / 432.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.1276, allocations: 8 kB / 432.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001556/0.1277, allocations: 164.5 kB / 432.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1277, allocations: 3.938 kB / 432.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.1281, allocations: 79.89 kB / 432.7 MB, free: 12.98 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009922/0.1291, allocations: 0.8682 MB / 433.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005555/0.1296, allocations: 286.4 kB / 433.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1296, allocations: 0 / 433.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.1299, allocations: 190.3 kB / 434 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.1302, allocations: 42.48 kB / 434.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003696/0.1339, allocations: 2.602 MB / 436.7 MB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003733/0.1343, allocations: 0.7599 MB / 437.4 MB, free: 8.031 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.832e-05/0.1344, allocations: 22.23 kB / 437.5 MB, free: 8.008 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.1345, allocations: 79.41 kB / 437.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1345, allocations: 4 kB / 437.5 MB, free: 7.926 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05479/0.1893, allocations: 5.682 MB / 443.2 MB, free: 2.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.32, allocations: 9.141 kB / 443.2 MB, free: 2.391 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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: 15.397142968140543]