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.001692/0.001692, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002029/0.002029, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 68.09 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2606, allocations: 50.54 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003888/0.2645, allocations: 2.889 MB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.2658, allocations: 0.7594 MB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.2659, allocations: 4 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.2661, allocations: 51.5 kB / 412.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.2663, allocations: 87.19 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003104/0.2666, allocations: 107.8 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003606/0.267, allocations: 378.4 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.2672, allocations: 119.3 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.2674, allocations: 139.5 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.2676, allocations: 151.3 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.719e-05/0.2676, allocations: 32 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.469e-05/0.2677, allocations: 36 kB / 413.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.64e-05/0.2678, allocations: 67.75 kB / 413.6 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.2679, allocations: 167.2 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003728/0.2683, allocations: 361.5 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2683, allocations: 3.938 kB / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2683, allocations: 0 / 414.1 MB, free: 12.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.2683, allocations: 0 / 414.1 MB, free: 12.17 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.0009272/0.2693, allocations: 0.6209 MB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.2693, allocations: 8.031 kB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.174e-05/0.2694, allocations: 66.72 kB / 414.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.493e-05/0.2694, allocations: 40.7 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003364/0.2698, allocations: 260.5 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.084e-05/0.2699, allocations: 80.61 kB / 415.1 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.643e-05/0.2699, allocations: 32.38 kB / 415.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.2704, allocations: 297.7 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.2704, allocations: 7.969 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.2704, allocations: 8 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.2704, allocations: 8 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003132/0.2708, allocations: 186.1 kB / 415.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.2723, allocations: 1.127 MB / 416.8 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.2726, allocations: 162.5 kB / 417 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.2727, allocations: 72.84 kB / 417 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.2728, allocations: 7.984 kB / 417 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/0.273, allocations: 161.2 kB / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 3.947e-06/0.273, allocations: 0 / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009553/0.274, allocations: 387.6 kB / 417.6 MB, free: 8.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.69e-05/0.2741, allocations: 114.8 kB / 417.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/0.2743, allocations: 221 kB / 417.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.2743, allocations: 33.7 kB / 417.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.2744, allocations: 184.4 kB / 418.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.242e-05/0.2745, allocations: 71.48 kB / 418.2 MB, free: 7.758 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.381e-05/0.2746, allocations: 57.66 kB / 418.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.2747, allocations: 338.8 kB / 418.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.2748, allocations: 67.97 kB / 418.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.275, allocations: 145.5 kB / 418.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.2752, allocations: 192.1 kB / 419 MB, free: 6.902 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2753, allocations: 0 / 419 MB, free: 6.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000403/0.2757, allocations: 272.6 kB / 419.2 MB, free: 6.629 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2757, allocations: 8 kB / 419.2 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.2757, allocations: 0 / 419.2 MB, free: 6.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002452/0.276, allocations: 57.03 kB / 419.3 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/0.2762, allocations: 51.92 kB / 419.3 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.2775, allocations: 1.572 MB / 420.9 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.2777, allocations: 39.8 kB / 421 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.2778, allocations: 8 kB / 421 MB, free: 4.754 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.0001407/0.2779, allocations: 161.7 kB / 421.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.2779, allocations: 23.86 kB / 421.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.719e-05/0.278, allocations: 26.17 kB / 421.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.278, allocations: 3.938 kB / 421.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.278, allocations: 4 kB / 421.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.278, allocations: 0 / 421.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/0.2783, allocations: 329.3 kB / 421.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2783, allocations: 0 / 421.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001597/0.2785, allocations: 27.98 kB / 421.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001857/0.2787, allocations: 52.81 kB / 421.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.2787, allocations: 7.984 kB / 421.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.2798, allocations: 1.426 MB / 423 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2798, allocations: 0 / 423 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005819/0.2804, allocations: 322.9 kB / 423.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.751e-05/0.2805, allocations: 120.8 kB / 423.4 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.2805, allocations: 11.94 kB / 423.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.2807, allocations: 11.98 kB / 423.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.635e-05/0.2808, allocations: 32.02 kB / 423.5 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.2808, allocations: 11.98 kB / 423.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001286/0.281, allocations: 160.5 kB / 423.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.281, allocations: 0 / 423.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003703/0.2813, allocations: 83.84 kB / 423.8 MB, free: 1.727 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.0008547/0.2822, allocations: 0.8659 MB / 424.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005012/0.2827, allocations: 290.4 kB / 424.9 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2827, allocations: 0 / 424.9 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002632/0.283, allocations: 194.6 kB / 425.1 MB, free: 344 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.2833, allocations: 44.89 kB / 425.1 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/0.2867, allocations: 2.6 MB / 427.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.287, allocations: 0.7558 MB / 428.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.413e-05/0.2871, allocations: 30.27 kB / 428.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.2872, allocations: 75.42 kB / 428.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2872, allocations: 0 / 428.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.3168, allocations: 5.645 MB / 434.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.63, allocations: 3.859 kB / 434.2 MB, free: 7.18 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.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