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.001961/0.001961, allocations: 121.4 kB / 17.79 MB, free: 5.121 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.002389/0.002389, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.346/1.346, allocations: 225.6 MB / 249.1 MB, free: 3.633 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.001492/0.001492, allocations: 55.91 kB / 365.7 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09822/0.09971, allocations: 52.13 MB / 417.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004101/0.1038, allocations: 2.878 MB / 420.7 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.1054, allocations: 0.7439 MB / 421.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.1055, allocations: 4 kB / 421.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.1057, allocations: 55.5 kB / 421.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.1059, allocations: 83.2 kB / 421.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003482/0.1063, allocations: 111.7 kB / 421.7 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004294/0.1067, allocations: 366.4 kB / 422 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.1069, allocations: 87.27 kB / 422.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.1071, allocations: 143.5 kB / 422.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002105/0.1073, allocations: 155.3 kB / 422.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.115e-05/0.1073, allocations: 32 kB / 422.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.758e-05/0.1074, allocations: 28 kB / 422.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.388e-05/0.1075, allocations: 71.75 kB / 422.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.1076, allocations: 163.2 kB / 422.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004401/0.1081, allocations: 370.5 kB / 423 MB, free: 7.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1081, allocations: 0 / 423 MB, free: 7.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1081, allocations: 0 / 423 MB, free: 7.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.1081, allocations: 0 / 423 MB, free: 7.32 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.001032/0.1091, allocations: 0.6131 MB / 423.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1091, allocations: 11.97 kB / 423.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.297e-05/0.1092, allocations: 66.72 kB / 423.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.447e-05/0.1093, allocations: 36.75 kB / 423.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.1097, allocations: 265.1 kB / 424 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.188e-05/0.1098, allocations: 80.55 kB / 424.1 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.668e-05/0.1098, allocations: 28.38 kB / 424.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004904/0.1103, allocations: 293.7 kB / 424.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.1103, allocations: 3.984 kB / 424.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.1104, allocations: 16 kB / 424.4 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1104, allocations: 8 kB / 424.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003552/0.1107, allocations: 190.1 kB / 424.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.1125, allocations: 1.12 MB / 425.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003066/0.1128, allocations: 154.5 kB / 425.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.1129, allocations: 64.84 kB / 426 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.1129, allocations: 15.97 kB / 426 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002645/0.1132, allocations: 158.1 kB / 426.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.1132, allocations: 0 / 426.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001001/0.1142, allocations: 385.4 kB / 426.5 MB, free: 3.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.39e-05/0.1143, allocations: 106.8 kB / 426.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002334/0.1145, allocations: 228.9 kB / 426.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.1145, allocations: 33.7 kB / 426.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.1147, allocations: 180.5 kB / 427.1 MB, free: 3.004 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.404e-05/0.1147, allocations: 75.41 kB / 427.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.678e-05/0.1148, allocations: 57.7 kB / 427.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.115, allocations: 338.8 kB / 427.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.1151, allocations: 63.97 kB / 427.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.1153, allocations: 148.5 kB / 427.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.1155, allocations: 192.8 kB / 427.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1156, allocations: 4 kB / 427.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004328/0.116, allocations: 272.5 kB / 428.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.116, allocations: 8 kB / 428.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.116, allocations: 0 / 428.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002595/0.1163, allocations: 61.03 kB / 428.2 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.1165, allocations: 47.92 kB / 428.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.118, allocations: 1.576 MB / 429.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.1182, allocations: 35.83 kB / 429.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.1182, allocations: 12 kB / 429.9 MB, free: 15.92 MB / 366.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.0001543/0.1184, allocations: 158.4 kB / 430.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.706e-05/0.1184, allocations: 27.8 kB / 430.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.129e-05/0.1185, allocations: 26.17 kB / 430.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1185, allocations: 0 / 430.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-06/0.1185, allocations: 0 / 430.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.1185, allocations: 7.938 kB / 430.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003355/0.1188, allocations: 321.4 kB / 430.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1188, allocations: 0 / 430.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001752/0.119, allocations: 31.98 kB / 430.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001768/0.1191, allocations: 52.81 kB / 430.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.1192, allocations: 3.984 kB / 430.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.1204, allocations: 1.426 MB / 432 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1204, allocations: 160 / 432 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006203/0.121, allocations: 327.1 kB / 432.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.1211, allocations: 120.8 kB / 432.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.1212, allocations: 4 kB / 432.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.1213, allocations: 24.05 kB / 432.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.168e-05/0.1214, allocations: 31.95 kB / 432.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.1214, allocations: 7.984 kB / 432.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001507/0.1216, allocations: 160.5 kB / 432.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1216, allocations: 0 / 432.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003552/0.1219, allocations: 79.89 kB / 432.7 MB, free: 12.89 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.0009979/0.1229, allocations: 0.8673 MB / 433.6 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005265/0.1235, allocations: 278.4 kB / 433.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.1235, allocations: 4.5 kB / 433.8 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002858/0.1238, allocations: 193.8 kB / 434 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.124, allocations: 46.58 kB / 434.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003698/0.1277, allocations: 2.608 MB / 436.7 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.1281, allocations: 0.7598 MB / 437.4 MB, free: 7.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.428e-05/0.1282, allocations: 22.28 kB / 437.5 MB, free: 7.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.1284, allocations: 87.42 kB / 437.5 MB, free: 7.832 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1284, allocations: 0 / 437.5 MB, free: 7.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03323/0.1616, allocations: 5.674 MB / 443.2 MB, free: 2.312 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.05, allocations: 6.859 kB / 443.2 MB, free: 2.309 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 14.971953002270311]