Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001565/0.001565, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001963/0.001963, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 60.19 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09828/0.09961, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004825/0.1045, allocations: 2.879 MB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.106, allocations: 0.775 MB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002339/0.1062, allocations: 4 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002141/0.1065, allocations: 47.5 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002608/0.1068, allocations: 91.17 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000372/0.1071, allocations: 103.8 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004103/0.1076, allocations: 370.4 kB / 361.8 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002262/0.1078, allocations: 119.1 kB / 362 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.108, allocations: 143.5 kB / 362.1 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.1082, allocations: 159.3 kB / 362.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.001e-05/0.1083, allocations: 28 kB / 362.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.703e-05/0.1084, allocations: 32 kB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.1085, allocations: 67.77 kB / 362.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.1086, allocations: 167.2 kB / 362.5 MB, free: 9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.109, allocations: 359 kB / 362.9 MB, free: 8.648 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.109, allocations: 0 / 362.9 MB, free: 8.648 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.109, allocations: 4 kB / 362.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.109, allocations: 0 / 362.9 MB, free: 8.645 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.001037/0.1101, allocations: 0.6057 MB / 363.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.1101, allocations: 8.031 kB / 363.5 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.673e-05/0.1102, allocations: 66.72 kB / 363.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.384e-05/0.1103, allocations: 32.56 kB / 363.6 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.1106, allocations: 260.4 kB / 363.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.947e-05/0.1107, allocations: 92.55 kB / 364 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.1108, allocations: 24.38 kB / 364 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004746/0.1113, allocations: 297.7 kB / 364.3 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.1113, allocations: 4 kB / 364.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.1113, allocations: 8 kB / 364.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1113, allocations: 8 kB / 364.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003534/0.1117, allocations: 202 kB / 364.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.1134, allocations: 1.131 MB / 365.6 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.1137, allocations: 150.5 kB / 365.8 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.1138, allocations: 80.83 kB / 365.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.1139, allocations: 4 kB / 365.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000312/0.1142, allocations: 165.2 kB / 366 MB, free: 5.293 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.1142, allocations: 0 / 366 MB, free: 5.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001084/0.1153, allocations: 383.1 kB / 366.4 MB, free: 4.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.033e-05/0.1154, allocations: 106.8 kB / 366.5 MB, free: 4.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002234/0.1156, allocations: 228.9 kB / 366.7 MB, free: 4.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.958e-05/0.1157, allocations: 29.7 kB / 366.7 MB, free: 4.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.1158, allocations: 184.2 kB / 366.9 MB, free: 4.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.9e-05/0.1159, allocations: 67 kB / 367 MB, free: 4.242 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.116, allocations: 57.7 kB / 367 MB, free: 4.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1161, allocations: 342.8 kB / 367.4 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.1162, allocations: 63.97 kB / 367.4 MB, free: 3.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.1164, allocations: 140.7 kB / 367.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002771/0.1167, allocations: 189.9 kB / 367.8 MB, free: 3.395 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1167, allocations: 0 / 367.8 MB, free: 3.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004544/0.1172, allocations: 276.4 kB / 368 MB, free: 3.117 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.1172, allocations: 4 kB / 368 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.1172, allocations: 4 kB / 368 MB, free: 3.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002691/0.1175, allocations: 57.03 kB / 368.1 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.1177, allocations: 47.92 kB / 368.1 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.1192, allocations: 1.572 MB / 369.7 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000244/0.1194, allocations: 39.67 kB / 369.7 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.1195, allocations: 15.98 kB / 369.8 MB, free: 1.242 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.0001618/0.1196, allocations: 150.8 kB / 369.9 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.949e-05/0.1197, allocations: 23.72 kB / 369.9 MB, free: 1.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.489e-05/0.1197, allocations: 30.17 kB / 370 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1198, allocations: 0 / 370 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-06/0.1198, allocations: 0 / 370 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1198, allocations: 0 / 370 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003171/0.1201, allocations: 321.4 kB / 370.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1201, allocations: 0 / 370.3 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.1203, allocations: 39.97 kB / 370.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/0.1205, allocations: 48.83 kB / 370.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.1205, allocations: 7.984 kB / 370.4 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1575/0.278, allocations: 1.419 MB / 371.8 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2781, allocations: 0 / 371.8 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007395/0.2788, allocations: 332 kB / 372.1 MB, free: 19.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.2789, allocations: 118.2 kB / 372.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.848e-05/0.279, allocations: 6.531 kB / 372.2 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.2792, allocations: 17.23 kB / 372.3 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.2793, allocations: 32.67 kB / 372.3 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.2793, allocations: 13.97 kB / 372.3 MB, free: 19.03 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001424/0.2794, allocations: 162.7 kB / 372.5 MB, free: 18.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2795, allocations: 1.375 kB / 372.5 MB, free: 18.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004368/0.2799, allocations: 78.89 kB / 372.5 MB, free: 18.95 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.0008034/0.2807, allocations: 0.8654 MB / 373.4 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000535/0.2813, allocations: 295 kB / 373.7 MB, free: 18.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2813, allocations: 3.875 kB / 373.7 MB, free: 18.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.2815, allocations: 192.9 kB / 373.9 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.2818, allocations: 42.72 kB / 373.9 MB, free: 18.13 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.2852, allocations: 2.603 MB / 376.5 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001863/0.2854, allocations: 0.7579 MB / 377.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.2855, allocations: 24.16 kB / 377.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.65e-05/0.2856, allocations: 77.81 kB / 377.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2856, allocations: 0 / 377.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.3128, allocations: 5.528 MB / 382.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.57, allocations: 10.38 kB / 382.9 MB, free: 15.14 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches