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.001237/0.001237, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001326, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 55.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.287, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004519/0.2916, allocations: 2.892 MB / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.2931, allocations: 0.7633 MB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.2932, allocations: 4 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.2934, allocations: 47.52 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.2936, allocations: 95.17 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004727/0.2941, allocations: 103.8 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004289/0.2945, allocations: 370.4 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002869/0.2948, allocations: 119.3 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.295, allocations: 143.5 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000224/0.2952, allocations: 155.3 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.199e-05/0.2953, allocations: 28 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.519e-05/0.2953, allocations: 32 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.2954, allocations: 67.77 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.2956, allocations: 163.3 kB / 413.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004834/0.2961, allocations: 369.5 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.2961, allocations: 4 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2961, allocations: 0 / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.2961, allocations: 0 / 414.1 MB, free: 12.18 MB / 334.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.001121/0.2973, allocations: 0.6131 MB / 414.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.2973, allocations: 8.031 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.16e-05/0.2974, allocations: 70.72 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.976e-05/0.2975, allocations: 36.7 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004238/0.2979, allocations: 272.5 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.09e-05/0.298, allocations: 76.56 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/0.2981, allocations: 28.38 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005066/0.2986, allocations: 305.7 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.2986, allocations: 0 / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.694e-05/0.2987, allocations: 16 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.2987, allocations: 4 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003365/0.2991, allocations: 190.1 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.3009, allocations: 1.12 MB / 416.8 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.3013, allocations: 166.5 kB / 417 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002514/0.3015, allocations: 80.81 kB / 417 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.3015, allocations: 0 / 417 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.3018, allocations: 161.2 kB / 417.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 3.066e-06/0.3018, allocations: 0 / 417.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001057/0.3029, allocations: 387.5 kB / 417.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.064e-05/0.303, allocations: 106.8 kB / 417.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002417/0.3033, allocations: 225 kB / 417.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.44e-05/0.3033, allocations: 33.7 kB / 417.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.3035, allocations: 188.4 kB / 418.1 MB, free: 7.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.463e-05/0.3035, allocations: 71.47 kB / 418.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.72e-05/0.3036, allocations: 57.66 kB / 418.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.3039, allocations: 338.8 kB / 418.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.304, allocations: 63.97 kB / 418.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.3042, allocations: 149.5 kB / 418.8 MB, free: 7.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003294/0.3045, allocations: 188.2 kB / 419 MB, free: 6.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3046, allocations: 4 kB / 419 MB, free: 6.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004386/0.305, allocations: 268.7 kB / 419.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.305, allocations: 12 kB / 419.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.305, allocations: 0 / 419.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002564/0.3053, allocations: 56.81 kB / 419.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.3055, allocations: 51.91 kB / 419.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/0.3071, allocations: 1.569 MB / 420.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.3073, allocations: 43.78 kB / 421 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.447e-05/0.3074, allocations: 12 kB / 421 MB, free: 4.758 MB / 334.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.0001622/0.3076, allocations: 153.6 kB / 421.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.183e-05/0.3076, allocations: 23.86 kB / 421.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.45e-05/0.3077, allocations: 34.23 kB / 421.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3077, allocations: 4 kB / 421.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.3077, allocations: 0 / 421.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3077, allocations: 0 / 421.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003408/0.308, allocations: 325.3 kB / 421.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.308, allocations: 3.938 kB / 421.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.3082, allocations: 35.98 kB / 421.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001836/0.3084, allocations: 48.81 kB / 421.6 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.3084, allocations: 8 kB / 421.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/0.3099, allocations: 1.422 MB / 423 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3099, allocations: 0 / 423 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006751/0.3106, allocations: 329.3 kB / 423.3 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.3107, allocations: 120.8 kB / 423.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.3108, allocations: 7.984 kB / 423.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.3109, allocations: 15.98 kB / 423.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001291/0.3111, allocations: 27.95 kB / 423.5 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.3111, allocations: 12 kB / 423.5 MB, free: 1.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001435/0.3112, allocations: 156.5 kB / 423.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3113, allocations: 4.062 kB / 423.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003496/0.3116, allocations: 87.83 kB / 423.8 MB, free: 1.73 MB / 334.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.0009785/0.3126, allocations: 0.8664 MB / 424.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005938/0.3132, allocations: 294.4 kB / 424.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.3132, allocations: 0 / 424.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002755/0.3135, allocations: 187.7 kB / 425.1 MB, free: 348 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.3138, allocations: 37.91 kB / 425.1 MB, free: 316 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003617/0.3174, allocations: 2.594 MB / 427.7 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.3178, allocations: 0.7597 MB / 428.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.989e-05/0.3179, allocations: 30.27 kB / 428.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.3181, allocations: 83.41 kB / 428.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3181, allocations: 3.938 kB / 428.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03507/0.3532, allocations: 5.632 MB / 434.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.96, allocations: 7.609 kB / 434.3 MB, free: 7.195 MB / 350.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.1.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