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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001589, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.00188/0.00188, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.499/1.499, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 38.16 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09916, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004397/0.1036, allocations: 2.866 MB / 353 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.105, allocations: 0.74 MB / 353.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.1052, allocations: 4 kB / 353.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001863/0.1054, allocations: 51.44 kB / 353.8 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.1057, allocations: 91.19 kB / 353.9 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003645/0.1061, allocations: 99.83 kB / 354 MB, free: 448 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003952/0.1065, allocations: 374.3 kB / 354.4 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00024/0.1067, allocations: 119.3 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001668/0.1069, allocations: 143.4 kB / 354.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.1071, allocations: 151.3 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.623e-05/0.1072, allocations: 28 kB / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.876e-05/0.1072, allocations: 32 kB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.341e-05/0.1073, allocations: 71.75 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.1075, allocations: 171.2 kB / 355.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003461/0.1078, allocations: 355 kB / 355.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1078, allocations: 0 / 355.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1079, allocations: 0 / 355.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.1079, allocations: 0 / 355.4 MB, free: 15.02 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001031/0.1089, allocations: 0.6057 MB / 356 MB, free: 14.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.109, allocations: 8.031 kB / 356 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.283e-05/0.109, allocations: 62.73 kB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.994e-05/0.1091, allocations: 32.56 kB / 356.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000317/0.1094, allocations: 272.8 kB / 356.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.307e-05/0.1095, allocations: 80.62 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.383e-05/0.1096, allocations: 24.38 kB / 356.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004939/0.1101, allocations: 305.6 kB / 356.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1101, allocations: 0 / 356.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.1101, allocations: 8 kB / 356.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.1101, allocations: 8 kB / 356.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003708/0.1105, allocations: 194.2 kB / 357 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.1123, allocations: 1.135 MB / 358.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002942/0.1126, allocations: 151.8 kB / 358.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.1127, allocations: 80.83 kB / 358.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.1128, allocations: 8 kB / 358.4 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003165/0.1131, allocations: 161 kB / 358.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.1131, allocations: 0 / 358.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001072/0.1142, allocations: 383.2 kB / 358.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.1142, allocations: 110.7 kB / 359 MB, free: 11.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1145, allocations: 224.9 kB / 359.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.1145, allocations: 33.7 kB / 359.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1146, allocations: 180.2 kB / 359.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.925e-05/0.1147, allocations: 71 kB / 359.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.962e-05/0.1148, allocations: 57.7 kB / 359.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1149, allocations: 338.8 kB / 359.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.1151, allocations: 67.97 kB / 360 MB, free: 10.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.1153, allocations: 140.6 kB / 360.1 MB, free: 9.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.1155, allocations: 190 kB / 360.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1156, allocations: 0 / 360.3 MB, free: 9.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004651/0.116, allocations: 280.3 kB / 360.6 MB, free: 9.492 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1161, allocations: 8 kB / 360.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1161, allocations: 0 / 360.6 MB, free: 9.484 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000273/0.1163, allocations: 57.03 kB / 360.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.1166, allocations: 63.83 kB / 360.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.118, allocations: 1.56 MB / 362.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.1183, allocations: 39.67 kB / 362.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.257e-05/0.1183, allocations: 16.09 kB / 362.3 MB, free: 7.609 MB / 302.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.0001518/0.1184, allocations: 153.6 kB / 362.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.1185, allocations: 19.72 kB / 362.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.848e-05/0.1186, allocations: 34.17 kB / 362.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.1186, allocations: 0 / 362.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1186, allocations: 0 / 362.5 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1186, allocations: 3.984 kB / 362.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003313/0.1189, allocations: 317.4 kB / 362.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1189, allocations: 8 kB / 362.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.1191, allocations: 31.92 kB / 362.9 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002094/0.1193, allocations: 52.81 kB / 362.9 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.1194, allocations: 0 / 362.9 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00127/0.1206, allocations: 1.433 MB / 364.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1207, allocations: 0 / 364.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000656/0.1213, allocations: 323 kB / 364.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1214, allocations: 116.7 kB / 364.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.93e-05/0.1215, allocations: 4.125 kB / 364.8 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.1217, allocations: 23.98 kB / 364.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.823e-05/0.1218, allocations: 27.95 kB / 364.8 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.1218, allocations: 4 kB / 364.8 MB, free: 4.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001471/0.122, allocations: 164.5 kB / 365 MB, free: 4.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.122, allocations: 3.938 kB / 365 MB, free: 4.676 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003834/0.1224, allocations: 79.84 kB / 365.1 MB, free: 4.598 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: 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.0009437/0.1233, allocations: 0.8648 MB / 365.9 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005658/0.1239, allocations: 298.8 kB / 366.2 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1239, allocations: 0 / 366.2 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000285/0.1242, allocations: 198.5 kB / 366.4 MB, free: 3.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.1245, allocations: 32.42 kB / 366.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003748/0.1283, allocations: 2.615 MB / 369.1 MB, free: 416 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1501/0.2784, allocations: 0.7491 MB / 369.8 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.2786, allocations: 22.98 kB / 369.8 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.2787, allocations: 83.39 kB / 369.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.2787, allocations: 0.5 kB / 369.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03331/0.312, allocations: 5.525 MB / 375.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.88, allocations: 7.969 kB / 375.5 MB, free: 24.01 MB / 302.1 MB (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) 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) Reference file matches