Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.419/1.419, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 43.94 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2419, allocations: 53.37 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004474/0.2464, allocations: 3.186 MB / 434.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.2479, allocations: 0.8295 MB / 435.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.248, allocations: 7.938 kB / 435.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.2482, allocations: 59.42 kB / 435.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.2484, allocations: 103.1 kB / 435.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.2488, allocations: 131.7 kB / 435.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004527/0.2492, allocations: 418.2 kB / 435.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.2494, allocations: 100.3 kB / 436 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.2497, allocations: 163.4 kB / 436.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.2499, allocations: 191.1 kB / 436.3 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.96e-05/0.25, allocations: 32 kB / 436.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.671e-05/0.25, allocations: 40 kB / 436.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.312e-05/0.2501, allocations: 79.69 kB / 436.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.2503, allocations: 183.1 kB / 436.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004856/0.2508, allocations: 438.6 kB / 437.1 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2508, allocations: 0 / 437.1 MB, free: 0.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2508, allocations: 0 / 437.1 MB, free: 0.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.2508, allocations: 0 / 437.1 MB, free: 0.918 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001035/0.2518, allocations: 0.5831 MB / 437.6 MB, free: 308 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.2519, allocations: 8.031 kB / 437.7 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.672e-05/0.252, allocations: 74.72 kB / 437.7 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001764/0.2521, allocations: 52.64 kB / 437.8 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.2525, allocations: 231.7 kB / 438 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.2526, allocations: 132 kB / 438.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/0.2527, allocations: 32.31 kB / 438.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005482/0.2532, allocations: 338.7 kB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.2533, allocations: 0 / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.2533, allocations: 20 kB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.2533, allocations: 8 kB / 438.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004137/0.2537, allocations: 218.5 kB / 438.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.2556, allocations: 1.31 MB / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003366/0.256, allocations: 170.5 kB / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001667/0.2561, allocations: 84.77 kB / 440.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.996e-05/0.2562, allocations: 4 kB / 440.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002908/0.2564, allocations: 155.6 kB / 440.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.2564, allocations: 0 / 440.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001052/0.2575, allocations: 336.3 kB / 440.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.547e-05/0.2576, allocations: 110.8 kB / 440.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.2579, allocations: 261.8 kB / 441.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.2579, allocations: 33.7 kB / 441.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.258, allocations: 212.3 kB / 441.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.25e-05/0.2581, allocations: 71.38 kB / 441.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.258e-05/0.2582, allocations: 62.03 kB / 441.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.2583, allocations: 338.8 kB / 441.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.2585, allocations: 76.62 kB / 441.9 MB, free: 11.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.2587, allocations: 173.5 kB / 442.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003614/0.2591, allocations: 239.5 kB / 442.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.2591, allocations: 3.938 kB / 442.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006761/0.2598, allocations: 348.4 kB / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.2598, allocations: 8 kB / 442.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.2598, allocations: 4 kB / 442.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002629/0.2601, allocations: 60.97 kB / 442.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.2603, allocations: 67.84 kB / 442.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.2617, allocations: 1.457 MB / 444.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.262, allocations: 47.75 kB / 444.3 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.835e-05/0.262, allocations: 19.98 kB / 444.3 MB, free: 9.148 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001675/0.2622, allocations: 152.7 kB / 444.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.078e-05/0.2622, allocations: 27.8 kB / 444.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.446e-05/0.2623, allocations: 34.27 kB / 444.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.2623, allocations: 0 / 444.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.2623, allocations: 0 / 444.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2623, allocations: 0 / 444.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.2627, allocations: 316.4 kB / 444.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.2627, allocations: 4 kB / 444.9 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001929/0.2629, allocations: 39.92 kB / 444.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/0.263, allocations: 56.73 kB / 444.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.2631, allocations: 4 kB / 445 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/0.2643, allocations: 1.318 MB / 446.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.2643, allocations: 4.156 kB / 446.3 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007228/0.265, allocations: 355.6 kB / 446.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.552e-05/0.2651, allocations: 39.8 kB / 446.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.899e-05/0.2651, allocations: 8 kB / 446.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.2653, allocations: 20.05 kB / 446.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.028e-05/0.2654, allocations: 35.88 kB / 446.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.2654, allocations: 4 kB / 446.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001934/0.2656, allocations: 189.2 kB / 446.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2656, allocations: 3.938 kB / 446.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003975/0.266, allocations: 87.84 kB / 447 MB, free: 6.285 MB / 350.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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001083/0.2671, allocations: 0.8855 MB / 447.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006455/0.2677, allocations: 302.9 kB / 448.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2677, allocations: 3.938 kB / 448.2 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.268, allocations: 194.6 kB / 448.4 MB, free: 4.852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.2683, allocations: 43.44 kB / 448.4 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/0.2727, allocations: 2.918 MB / 451.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.2731, allocations: 0.7675 MB / 452.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001042/0.2732, allocations: 30.28 kB / 452.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.2733, allocations: 95.41 kB / 452.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2733, allocations: 4 kB / 452.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03799/0.3113, allocations: 6.296 MB / 458.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.61, allocations: 15.73 kB / 458.5 MB, free: 10.67 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00025 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.552092218000325]