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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 112.3 kB / 16.92 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001806/0.001807, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.534/1.534, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001017, allocations: 51.14 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.09728, allocations: 49.44 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004667/0.102, allocations: 3.131 MB / 353.3 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.1034, allocations: 0.7478 MB / 354 MB, free: 448 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002693/0.1037, allocations: 4 kB / 354 MB, free: 444 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001998/0.104, allocations: 67.36 kB / 354.1 MB, free: 376 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002479/0.1042, allocations: 107 kB / 354.2 MB, free: 268 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003708/0.1046, allocations: 107.8 kB / 354.3 MB, free: 160 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000487/0.1051, allocations: 414.2 kB / 354.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.1053, allocations: 143.7 kB / 354.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002385/0.1056, allocations: 155.4 kB / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002414/0.1058, allocations: 179.2 kB / 355.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.384e-05/0.1059, allocations: 36 kB / 355.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.368e-05/0.106, allocations: 36 kB / 355.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.406e-05/0.1061, allocations: 75.7 kB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.1063, allocations: 187.1 kB / 355.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003851/0.1067, allocations: 422.7 kB / 355.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1067, allocations: 4 kB / 355.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1067, allocations: 0 / 355.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.1067, allocations: 0 / 355.9 MB, free: 14.53 MB / 302.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.001099/0.1078, allocations: 0.6548 MB / 356.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1079, allocations: 8.031 kB / 356.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.589e-05/0.108, allocations: 70.72 kB / 356.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.234e-05/0.1081, allocations: 40.47 kB / 356.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003477/0.1084, allocations: 277.2 kB / 357 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.769e-05/0.1085, allocations: 80.62 kB / 357.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.692e-05/0.1086, allocations: 28.38 kB / 357.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005719/0.1091, allocations: 346.7 kB / 357.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.1092, allocations: 0 / 357.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.1092, allocations: 15.98 kB / 357.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.1092, allocations: 8 kB / 357.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004345/0.1097, allocations: 222.5 kB / 357.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/0.1117, allocations: 1.356 MB / 359 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003348/0.1121, allocations: 172.5 kB / 359.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.1122, allocations: 88.81 kB / 359.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.1123, allocations: 7.984 kB / 359.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003341/0.1126, allocations: 161.2 kB / 359.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.583e-06/0.1126, allocations: 0 / 359.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001101/0.1137, allocations: 411 kB / 359.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.44e-05/0.1138, allocations: 102.8 kB / 359.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.1141, allocations: 258.7 kB / 360.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.947e-05/0.1141, allocations: 37.69 kB / 360.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.1143, allocations: 203.8 kB / 360.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.841e-05/0.1143, allocations: 75.03 kB / 360.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.687e-05/0.1144, allocations: 61.94 kB / 360.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1146, allocations: 342.8 kB / 360.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.1148, allocations: 72.62 kB / 361 MB, free: 9.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.115, allocations: 181.5 kB / 361.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/0.1154, allocations: 233.4 kB / 361.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.1154, allocations: 0 / 361.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006929/0.1161, allocations: 348.2 kB / 361.7 MB, free: 8.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1161, allocations: 4 kB / 361.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1161, allocations: 8.344 kB / 361.7 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000271/0.1164, allocations: 60.81 kB / 361.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/0.1167, allocations: 59.91 kB / 361.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001413/0.1181, allocations: 1.572 MB / 363.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.1184, allocations: 43.7 kB / 363.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.504e-05/0.1184, allocations: 19.94 kB / 363.5 MB, free: 6.418 MB / 302.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.0001633/0.1186, allocations: 149.7 kB / 363.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.943e-05/0.1186, allocations: 31.56 kB / 363.7 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.475e-05/0.1187, allocations: 34.23 kB / 363.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.1187, allocations: 4 kB / 363.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1187, allocations: 0 / 363.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1187, allocations: 3.984 kB / 363.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.1191, allocations: 329.5 kB / 364 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1191, allocations: 0 / 364 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.1193, allocations: 35.97 kB / 364.1 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001877/0.1195, allocations: 60.69 kB / 364.1 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.1195, allocations: 4 kB / 364.1 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.1207, allocations: 1.422 MB / 365.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.1207, allocations: 4 kB / 365.5 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007094/0.1214, allocations: 358.7 kB / 365.9 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.1216, allocations: 120.8 kB / 366 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.1216, allocations: 0 / 366 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.1218, allocations: 23.92 kB / 366 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.1219, allocations: 31.89 kB / 366.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.723e-05/0.1219, allocations: 12.06 kB / 366.1 MB, free: 3.578 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000163/0.1221, allocations: 181.9 kB / 366.3 MB, free: 3.402 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.1221, allocations: 0 / 366.3 MB, free: 3.402 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003839/0.1225, allocations: 95.73 kB / 366.3 MB, free: 3.309 MB / 302.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.001044/0.1235, allocations: 0.8884 MB / 367.2 MB, free: 2.387 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006805/0.1242, allocations: 314.4 kB / 367.5 MB, free: 2.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.1242, allocations: 4.75 kB / 367.5 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.1245, allocations: 197.8 kB / 367.7 MB, free: 1.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.1248, allocations: 38.84 kB / 367.8 MB, free: 1.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1478/0.2726, allocations: 2.903 MB / 370.7 MB, free: 24.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.2729, allocations: 0.7696 MB / 371.5 MB, free: 23.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001518/0.273, allocations: 27.23 kB / 371.5 MB, free: 23.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.2732, allocations: 96.47 kB / 371.6 MB, free: 23.68 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2732, allocations: 0 / 371.6 MB, free: 23.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0308/0.304, allocations: 5.894 MB / 377.5 MB, free: 23.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/11.97, allocations: 15.55 kB / 377.5 MB, free: 23.14 MB / 302.1 MB (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) 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) Reference file matches