Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001319/0.001319, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001452/0.001452, allocations: 214.1 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 63.91 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2797, allocations: 53.41 MB / 431.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004682/0.2844, allocations: 3.19 MB / 434.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.286, allocations: 0.8333 MB / 435.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.2861, allocations: 8 kB / 435.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.2863, allocations: 59.42 kB / 435.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.2865, allocations: 107 kB / 435.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004054/0.2869, allocations: 127.8 kB / 435.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004868/0.2874, allocations: 418.2 kB / 435.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.2876, allocations: 100.3 kB / 436 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002707/0.2879, allocations: 175.4 kB / 436.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.2881, allocations: 167.2 kB / 436.4 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.257e-05/0.2882, allocations: 36 kB / 436.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.12e-05/0.2882, allocations: 36 kB / 436.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.426e-05/0.2883, allocations: 87.69 kB / 436.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001814/0.2885, allocations: 187.1 kB / 436.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005105/0.289, allocations: 438.6 kB / 437.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.289, allocations: 0 / 437.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.289, allocations: 0 / 437.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.289, allocations: 0 / 437.1 MB, free: 0.7109 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.001082/0.2901, allocations: 0.587 MB / 437.7 MB, free: 92 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.2902, allocations: 12.03 kB / 437.7 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.451e-05/0.2902, allocations: 66.72 kB / 437.8 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.2904, allocations: 56.64 kB / 437.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.2909, allocations: 227.5 kB / 438.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.291, allocations: 132 kB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.582e-05/0.291, allocations: 32.38 kB / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005755/0.2916, allocations: 342.7 kB / 438.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.2916, allocations: 0 / 438.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.2916, allocations: 16 kB / 438.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.2917, allocations: 8 kB / 438.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004296/0.2921, allocations: 218.5 kB / 438.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.2941, allocations: 1.314 MB / 440.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003604/0.2944, allocations: 166.4 kB / 440.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.2946, allocations: 84.83 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.381e-05/0.2946, allocations: 0 / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003057/0.2949, allocations: 165.4 kB / 440.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.2949, allocations: 0 / 440.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001094/0.296, allocations: 330.5 kB / 440.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.492e-05/0.2961, allocations: 102.8 kB / 440.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.2964, allocations: 265.8 kB / 441.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.035e-05/0.2964, allocations: 29.7 kB / 441.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/0.2966, allocations: 216.2 kB / 441.4 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.784e-05/0.2966, allocations: 79.36 kB / 441.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.2968, allocations: 62.03 kB / 441.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.2969, allocations: 334.8 kB / 441.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.2971, allocations: 80.55 kB / 442 MB, free: 11.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.2973, allocations: 177.5 kB / 442.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.2977, allocations: 235.5 kB / 442.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.2977, allocations: 4 kB / 442.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006765/0.2984, allocations: 344.2 kB / 442.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.2984, allocations: 12.33 kB / 442.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.2984, allocations: 4 kB / 442.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002549/0.2986, allocations: 56.81 kB / 442.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.2989, allocations: 55.92 kB / 442.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.3003, allocations: 1.472 MB / 444.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.3005, allocations: 47.72 kB / 444.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.3006, allocations: 12 kB / 444.4 MB, free: 8.949 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.000177/0.3007, allocations: 149.7 kB / 444.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.475e-05/0.3008, allocations: 31.8 kB / 444.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.293e-05/0.3008, allocations: 30.27 kB / 444.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.3008, allocations: 8.062 kB / 444.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.3008, allocations: 0 / 444.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.3008, allocations: 0 / 444.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003453/0.3012, allocations: 316.4 kB / 444.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3012, allocations: 0 / 444.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.3014, allocations: 31.98 kB / 444.9 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/0.3016, allocations: 60.75 kB / 445 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.3016, allocations: 7.984 kB / 445 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.3028, allocations: 1.318 MB / 446.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3028, allocations: 0 / 446.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006926/0.3035, allocations: 359.7 kB / 446.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.766e-05/0.3036, allocations: 39.77 kB / 446.7 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.737e-05/0.3036, allocations: 8 kB / 446.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.3038, allocations: 15.98 kB / 446.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.988e-05/0.3038, allocations: 35.88 kB / 446.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.3039, allocations: 4 kB / 446.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001811/0.304, allocations: 189.3 kB / 447 MB, free: 6.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.304, allocations: 0 / 447 MB, free: 6.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003841/0.3044, allocations: 91.84 kB / 447.1 MB, free: 6.09 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.001041/0.3055, allocations: 0.8824 MB / 447.9 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000597/0.3061, allocations: 302.7 kB / 448.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3061, allocations: 0 / 448.2 MB, free: 4.863 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003015/0.3064, allocations: 202.7 kB / 448.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000275/0.3066, allocations: 44.41 kB / 448.5 MB, free: 4.613 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004219/0.3109, allocations: 2.92 MB / 451.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.3113, allocations: 0.7714 MB / 452.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.3114, allocations: 30.27 kB / 452.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.3115, allocations: 99.41 kB / 452.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3115, allocations: 0 / 452.3 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03719/0.3487, allocations: 6.295 MB / 458.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.66, allocations: 3.094 kB / 458.6 MB, free: 10.46 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.672435718002816]