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.00145/0.00145, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001627/0.001627, allocations: 215 kB / 23.73 MB, free: 4.531 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.431/1.431, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.002286/0.002286, allocations: 43.94 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2966, allocations: 53.36 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004473/0.3011, allocations: 2.926 MB / 434 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.3026, allocations: 0.7828 MB / 434.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.3028, allocations: 12 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001888/0.303, allocations: 55.42 kB / 434.9 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.3032, allocations: 99.06 kB / 435 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004284/0.3036, allocations: 131.7 kB / 435.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004598/0.304, allocations: 418.1 kB / 435.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.3043, allocations: 106 kB / 435.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.3045, allocations: 167.4 kB / 435.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.3048, allocations: 175.2 kB / 435.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.636e-05/0.3049, allocations: 36 kB / 436 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.909e-05/0.3049, allocations: 36 kB / 436 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.129e-05/0.305, allocations: 83.69 kB / 436.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.3052, allocations: 159.3 kB / 436.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004885/0.3057, allocations: 438.2 kB / 436.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3057, allocations: 0 / 436.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3057, allocations: 0 / 436.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.3057, allocations: 4 kB / 436.7 MB, free: 1.039 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.001061/0.3067, allocations: 0.5753 MB / 437.3 MB, free: 440 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3068, allocations: 16.02 kB / 437.3 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.366e-05/0.3069, allocations: 66.72 kB / 437.3 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001773/0.307, allocations: 52.66 kB / 437.4 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004108/0.3075, allocations: 231.5 kB / 437.6 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.3076, allocations: 128 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.53e-05/0.3076, allocations: 32.38 kB / 437.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005839/0.3082, allocations: 398 kB / 438.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3082, allocations: 0 / 438.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.146e-05/0.3083, allocations: 12 kB / 438.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.3083, allocations: 8 kB / 438.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004159/0.3087, allocations: 226.4 kB / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.3105, allocations: 1.252 MB / 439.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003281/0.3109, allocations: 158.5 kB / 439.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.311, allocations: 84.77 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.311, allocations: 7.984 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003095/0.3113, allocations: 209.2 kB / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.482e-06/0.3113, allocations: 0 / 440.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001044/0.3124, allocations: 333.5 kB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/0.3125, allocations: 102.8 kB / 440.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.3127, allocations: 273.8 kB / 440.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.3128, allocations: 25.7 kB / 440.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.3129, allocations: 216.3 kB / 441 MB, free: 12.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.259e-05/0.313, allocations: 75.42 kB / 441.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.566e-05/0.3131, allocations: 61.98 kB / 441.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3132, allocations: 338.8 kB / 441.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.3134, allocations: 76.61 kB / 441.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002557/0.3136, allocations: 228.9 kB / 441.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.314, allocations: 243.5 kB / 442 MB, free: 11.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.314, allocations: 0 / 442 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006731/0.3147, allocations: 344.4 kB / 442.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.3147, allocations: 4 kB / 442.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.3147, allocations: 4 kB / 442.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.315, allocations: 61.06 kB / 442.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/0.3152, allocations: 59.91 kB / 442.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001389/0.3166, allocations: 1.457 MB / 443.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00024/0.3169, allocations: 47.95 kB / 444 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.3169, allocations: 16 kB / 444 MB, free: 9.168 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.0001637/0.3171, allocations: 153.7 kB / 444.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.289e-05/0.3171, allocations: 35.69 kB / 444.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.449e-05/0.3171, allocations: 34.27 kB / 444.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3172, allocations: 3.984 kB / 444.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3172, allocations: 0 / 444.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.3172, allocations: 4 kB / 444.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003159/0.3175, allocations: 276.6 kB / 444.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3175, allocations: 4 kB / 444.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.3177, allocations: 31.98 kB / 444.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001786/0.3179, allocations: 56.75 kB / 444.6 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.116e-05/0.3179, allocations: 11.92 kB / 444.6 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.3191, allocations: 1.314 MB / 445.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3191, allocations: 3.938 kB / 445.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006986/0.3198, allocations: 349.6 kB / 446.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.071e-05/0.3198, allocations: 47.98 kB / 446.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.3199, allocations: 7.984 kB / 446.3 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.3201, allocations: 15.98 kB / 446.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.749e-05/0.3201, allocations: 31.89 kB / 446.4 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.3202, allocations: 7.984 kB / 446.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.3203, allocations: 185.2 kB / 446.6 MB, free: 6.422 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3203, allocations: 0 / 446.6 MB, free: 6.422 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003724/0.3207, allocations: 87.84 kB / 446.6 MB, free: 6.336 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.001025/0.3217, allocations: 0.888 MB / 447.5 MB, free: 5.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000575/0.3223, allocations: 304.6 kB / 447.8 MB, free: 5.105 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3223, allocations: 0.75 kB / 447.8 MB, free: 5.105 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003014/0.3226, allocations: 210.6 kB / 448 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.3229, allocations: 38.83 kB / 448.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00422/0.3271, allocations: 2.91 MB / 451 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001645/0.3273, allocations: 164.8 kB / 451.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001018/0.3274, allocations: 26.3 kB / 451.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.3275, allocations: 99.39 kB / 451.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3275, allocations: 0 / 451.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04619/0.3737, allocations: 6.78 MB / 458 MB, free: 10.9 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.56, allocations: 10.67 kB / 458.1 MB, free: 10.89 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] "Warning: Resultfile and Reference have different end time points! Reffile[48038]=6.000000 File[799134]=0.006252 " [Timeout remaining time 658] "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:time,inductor1.i,inductor2.i [Calling sys.exit(0), Time elapsed: 70.20009072497487]