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.001888/0.001888, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001518/0.001518, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.235, allocations: 50.54 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003736/0.2387, allocations: 2.888 MB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.2402, allocations: 0.7556 MB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.2403, allocations: 7.938 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.2405, allocations: 51.5 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.2407, allocations: 91.17 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.241, allocations: 103.8 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003451/0.2414, allocations: 382.3 kB / 413 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002215/0.2416, allocations: 123.2 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.2418, allocations: 139.5 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.242, allocations: 151.3 kB / 413.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.905e-05/0.2421, allocations: 32 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.349e-05/0.2421, allocations: 28 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.627e-05/0.2422, allocations: 79.73 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.2424, allocations: 159.3 kB / 413.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003477/0.2427, allocations: 365.5 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2427, allocations: 0 / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2427, allocations: 0 / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.2427, allocations: 0 / 414.1 MB, free: 12.16 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.0009482/0.2437, allocations: 0.6131 MB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.2437, allocations: 12.03 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.237e-05/0.2438, allocations: 62.72 kB / 414.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.044e-05/0.2439, allocations: 40.7 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003359/0.2442, allocations: 272.4 kB / 415.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.355e-05/0.2443, allocations: 80.62 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.2444, allocations: 24.38 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004711/0.2448, allocations: 301.6 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.2449, allocations: 3.984 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.2449, allocations: 16 kB / 415.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.2449, allocations: 8 kB / 415.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003297/0.2453, allocations: 190.1 kB / 415.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.2469, allocations: 1.127 MB / 416.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.2472, allocations: 150.5 kB / 417 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.2473, allocations: 80.83 kB / 417 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.2473, allocations: 8 kB / 417.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002578/0.2476, allocations: 153.8 kB / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 3.827e-06/0.2476, allocations: 0 / 417.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001039/0.2486, allocations: 395.1 kB / 417.6 MB, free: 8.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/0.2487, allocations: 102.8 kB / 417.7 MB, free: 8.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.2489, allocations: 225 kB / 417.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.326e-05/0.249, allocations: 29.7 kB / 417.9 MB, free: 8.004 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.2491, allocations: 192.4 kB / 418.1 MB, free: 7.812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.904e-05/0.2491, allocations: 63.48 kB / 418.2 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.631e-05/0.2492, allocations: 65.66 kB / 418.3 MB, free: 7.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.2494, allocations: 338.8 kB / 418.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.2495, allocations: 67.97 kB / 418.6 MB, free: 7.273 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.2497, allocations: 137.5 kB / 418.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002592/0.2499, allocations: 196.2 kB / 419 MB, free: 6.891 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.25, allocations: 4 kB / 419 MB, free: 6.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000417/0.2504, allocations: 268.5 kB / 419.2 MB, free: 6.617 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.2504, allocations: 6.969 kB / 419.2 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2504, allocations: 4 kB / 419.3 MB, free: 6.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000264/0.2507, allocations: 57.03 kB / 419.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.2509, allocations: 55.91 kB / 419.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.2523, allocations: 1.569 MB / 420.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.2526, allocations: 39.77 kB / 421 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.2526, allocations: 12.09 kB / 421 MB, free: 4.738 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.0001388/0.2527, allocations: 153.6 kB / 421.1 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.382e-05/0.2528, allocations: 23.86 kB / 421.2 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.602e-05/0.2528, allocations: 34.17 kB / 421.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2528, allocations: 0 / 421.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.2529, allocations: 0 / 421.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.2529, allocations: 0 / 421.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003065/0.2532, allocations: 329.3 kB / 421.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.2532, allocations: 7.938 kB / 421.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001641/0.2534, allocations: 35.92 kB / 421.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001941/0.2536, allocations: 52.81 kB / 421.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.2536, allocations: 0 / 421.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001066/0.2547, allocations: 1.422 MB / 423 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2547, allocations: 4.156 kB / 423 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.2553, allocations: 325.6 kB / 423.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.167e-05/0.2554, allocations: 116.8 kB / 423.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.603e-05/0.2554, allocations: 7.984 kB / 423.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.2556, allocations: 24.05 kB / 423.5 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.74e-05/0.2557, allocations: 23.97 kB / 423.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.2557, allocations: 15.98 kB / 423.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001305/0.2559, allocations: 160.5 kB / 423.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2559, allocations: 0 / 423.7 MB, free: 1.789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003523/0.2562, allocations: 79.84 kB / 423.8 MB, free: 1.711 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.0008639/0.2571, allocations: 0.8766 MB / 424.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004965/0.2576, allocations: 286.5 kB / 424.9 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2576, allocations: 0.5 kB / 424.9 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002451/0.2579, allocations: 190.6 kB / 425.1 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.2582, allocations: 44.38 kB / 425.2 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003219/0.2614, allocations: 2.595 MB / 427.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002709/0.2617, allocations: 0.7597 MB / 428.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.689e-05/0.2618, allocations: 22.27 kB / 428.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.2619, allocations: 91.34 kB / 428.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2619, allocations: 7.938 kB / 428.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.2885, allocations: 5.621 MB / 434.2 MB, free: 7.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.42, allocations: 7.859 kB / 434.3 MB, free: 7.168 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