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.002053/0.002053, allocations: 119 kB / 17.78 MB, free: 5.23 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.00268/0.00268, allocations: 197.2 kB / 20.73 MB, free: 2.289 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.416/1.416, allocations: 225.6 MB / 249.1 MB, free: 3.613 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 51.92 kB / 365.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1065, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004663/0.1111, allocations: 3.151 MB / 420.9 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001638/0.1128, allocations: 0.7556 MB / 421.7 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001769/0.1129, allocations: 11.94 kB / 421.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002144/0.1132, allocations: 51.44 kB / 421.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.1134, allocations: 107 kB / 421.9 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003822/0.1138, allocations: 111.8 kB / 422 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004721/0.1142, allocations: 410.2 kB / 422.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002249/0.1145, allocations: 103.8 kB / 422.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002171/0.1147, allocations: 167.4 kB / 422.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.1149, allocations: 171.2 kB / 422.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.214e-05/0.115, allocations: 36 kB / 422.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.842e-05/0.115, allocations: 36 kB / 422.9 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.743e-05/0.1151, allocations: 83.69 kB / 423 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001899/0.1153, allocations: 183.1 kB / 423.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005359/0.1158, allocations: 430.2 kB / 423.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1158, allocations: 0 / 423.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1158, allocations: 0 / 423.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1158, allocations: 0 / 423.6 MB, free: 6.793 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.001253/0.1171, allocations: 0.6661 MB / 424.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.1171, allocations: 8.031 kB / 424.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.238e-05/0.1172, allocations: 70.72 kB / 424.3 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.845e-05/0.1173, allocations: 40.7 kB / 424.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004938/0.1178, allocations: 301.2 kB / 424.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.44e-05/0.1179, allocations: 76.62 kB / 424.7 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.093e-05/0.118, allocations: 32.38 kB / 424.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006091/0.1186, allocations: 334.7 kB / 425.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.1186, allocations: 7.938 kB / 425.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.1186, allocations: 19.94 kB / 425.1 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.1186, allocations: 8 kB / 425.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004436/0.1191, allocations: 214.5 kB / 425.3 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.1211, allocations: 1.356 MB / 426.7 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.1215, allocations: 162.5 kB / 426.8 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.1216, allocations: 91.2 kB / 426.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.1217, allocations: 0 / 426.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002996/0.122, allocations: 157.9 kB / 427.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.122, allocations: 0 / 427.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001176/0.1231, allocations: 413.3 kB / 427.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.863e-05/0.1232, allocations: 102.8 kB / 427.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/0.1235, allocations: 258.7 kB / 427.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.1235, allocations: 33.7 kB / 427.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.1237, allocations: 204.3 kB / 428.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.423e-05/0.1238, allocations: 83.36 kB / 428.1 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.1239, allocations: 54.03 kB / 428.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.124, allocations: 338.8 kB / 428.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.1242, allocations: 80.61 kB / 428.6 MB, free: 1.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002464/0.1245, allocations: 173.5 kB / 428.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004053/0.1249, allocations: 240.3 kB / 429 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1249, allocations: 0 / 429 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007228/0.1256, allocations: 348.4 kB / 429.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1256, allocations: 4 kB / 429.4 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1256, allocations: 7.938 kB / 429.4 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002897/0.1259, allocations: 61 kB / 429.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.1262, allocations: 59.91 kB / 429.5 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/0.1278, allocations: 1.564 MB / 431 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.1281, allocations: 51.75 kB / 431.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.1281, allocations: 16.09 kB / 431.1 MB, free: 14.68 MB / 366.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.0002028/0.1283, allocations: 154.3 kB / 431.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.819e-05/0.1284, allocations: 27.8 kB / 431.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.826e-05/0.1284, allocations: 34.17 kB / 431.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1284, allocations: 0 / 431.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.1284, allocations: 0 / 431.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1284, allocations: 7.922 kB / 431.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004236/0.1289, allocations: 337.4 kB / 431.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1289, allocations: 0 / 431.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.1291, allocations: 43.91 kB / 431.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002185/0.1293, allocations: 56.75 kB / 431.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.1293, allocations: 4 kB / 431.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0013/0.1306, allocations: 1.426 MB / 433.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1306, allocations: 4.156 kB / 433.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007438/0.1314, allocations: 349.5 kB / 433.5 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.1315, allocations: 116.9 kB / 433.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.379e-05/0.1315, allocations: 7.984 kB / 433.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/0.1318, allocations: 20.05 kB / 433.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.1319, allocations: 31.91 kB / 433.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.1319, allocations: 7.984 kB / 433.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001993/0.1321, allocations: 182 kB / 433.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1321, allocations: 0 / 433.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004304/0.1325, allocations: 91.84 kB / 434 MB, free: 11.56 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.00113/0.1337, allocations: 0.8931 MB / 434.9 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006636/0.1343, allocations: 298.8 kB / 435.2 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1343, allocations: 0 / 435.2 MB, free: 10.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003236/0.1346, allocations: 198.5 kB / 435.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.1349, allocations: 36.48 kB / 435.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004479/0.1394, allocations: 2.919 MB / 438.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.1398, allocations: 0.7675 MB / 439.1 MB, free: 6.223 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.1399, allocations: 30.28 kB / 439.1 MB, free: 6.191 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.1401, allocations: 99.41 kB / 439.2 MB, free: 6.094 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1401, allocations: 0 / 439.2 MB, free: 6.094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03572/0.1758, allocations: 6.075 MB / 445.3 MB, free: 204 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.1, allocations: 14.31 kB / 445.3 MB, free: 192 kB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 15.500765038188547]