Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001632/0.001632, allocations: 118.6 kB / 18.5 MB, free: 4.602 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.00195/0.00195, allocations: 206.6 kB / 21.45 MB, free: 1.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.486/1.486, allocations: 230.5 MB / 254.8 MB, free: 15.09 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-beta.om/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_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 72.06 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.103, allocations: 53.32 MB / 427 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004564/0.1076, allocations: 3.166 MB / 430.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001565/0.1091, allocations: 0.8334 MB / 431 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.1093, allocations: 8 kB / 431 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001839/0.1095, allocations: 59.38 kB / 431.1 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00021/0.1097, allocations: 103 kB / 431.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004148/0.1101, allocations: 123.8 kB / 431.3 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004833/0.1106, allocations: 418.2 kB / 431.7 MB, free: 60 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1981/0.3087, allocations: 93.77 kB / 431.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004281/0.3091, allocations: 169.6 kB / 432 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.3093, allocations: 176.5 kB / 432.1 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.821e-05/0.3094, allocations: 35.12 kB / 432.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.643e-05/0.3095, allocations: 39.39 kB / 432.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.045e-05/0.3096, allocations: 79.42 kB / 432.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001626/0.3097, allocations: 192.4 kB / 432.5 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004487/0.3102, allocations: 430 kB / 432.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3102, allocations: 0 / 432.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3102, allocations: 1.469 kB / 432.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.3102, allocations: 1.219 kB / 432.9 MB, free: 7.023 MB / 350.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.0009047/0.3111, allocations: 0.6599 MB / 433.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3111, allocations: 10.53 kB / 433.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.858e-05/0.3112, allocations: 71.09 kB / 433.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.3114, allocations: 59.94 kB / 433.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.3117, allocations: 278.2 kB / 434 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.614e-05/0.3117, allocations: 81.31 kB / 434.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.706e-05/0.3118, allocations: 33.12 kB / 434.1 MB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004627/0.3123, allocations: 341.2 kB / 434.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.3123, allocations: 1.25 kB / 434.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.3123, allocations: 13.69 kB / 434.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.3123, allocations: 8.719 kB / 434.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003854/0.3127, allocations: 220.8 kB / 434.7 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.3142, allocations: 1.357 MB / 436 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/0.3145, allocations: 163.1 kB / 436.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.3147, allocations: 84.55 kB / 436.3 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.3147, allocations: 2.219 kB / 436.3 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002868/0.315, allocations: 158.8 kB / 436.4 MB, free: 5.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.794e-06/0.315, allocations: 0 / 436.4 MB, free: 5.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001101/0.3161, allocations: 405.4 kB / 436.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.3161, allocations: 111.4 kB / 436.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002463/0.3164, allocations: 269.5 kB / 437.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.3164, allocations: 30.11 kB / 437.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.3165, allocations: 213.6 kB / 437.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.266e-05/0.3166, allocations: 80.84 kB / 437.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.829e-05/0.3167, allocations: 60 kB / 437.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.115e-05/0.3167, allocations: 335.6 kB / 437.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001578/0.3169, allocations: 76.94 kB / 438 MB, free: 4.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.3171, allocations: 179.4 kB / 438.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.3174, allocations: 238.3 kB / 438.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3174, allocations: 1.281 kB / 438.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006511/0.318, allocations: 347.1 kB / 438.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3181, allocations: 7.203 kB / 438.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3181, allocations: 3.438 kB / 438.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000263/0.3183, allocations: 54.47 kB / 438.8 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002555/0.3186, allocations: 67.12 kB / 438.8 MB, free: 4.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001121/0.3197, allocations: 1.565 MB / 440.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002699/0.32, allocations: 49.78 kB / 440.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.32, allocations: 14.84 kB / 440.5 MB, free: 2.496 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.0001249/0.3201, allocations: 150.6 kB / 440.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.991e-05/0.3202, allocations: 26.41 kB / 440.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.89e-05/0.3202, allocations: 35.64 kB / 440.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.3202, allocations: 2.344 kB / 440.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3202, allocations: 0 / 440.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3202, allocations: 1.172 kB / 440.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003184/0.3206, allocations: 343.2 kB / 441 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3206, allocations: 5.719 kB / 441 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.3207, allocations: 38 kB / 441.1 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001851/0.3209, allocations: 62.86 kB / 441.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.3209, allocations: 2.953 kB / 441.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008393/0.3218, allocations: 1.421 MB / 442.5 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3218, allocations: 0 / 442.5 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006755/0.3225, allocations: 350.3 kB / 442.9 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.613e-05/0.3226, allocations: 113.3 kB / 443 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.52e-05/0.3226, allocations: 8.75 kB / 443 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.3228, allocations: 23.7 kB / 443 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.28e-05/0.3229, allocations: 34.3 kB / 443.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.3229, allocations: 9 kB / 443.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001562/0.323, allocations: 185.2 kB / 443.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.323, allocations: 0 / 443.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004053/0.3235, allocations: 94.94 kB / 443.3 MB, free: 492 kB / 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.0009404/0.3244, allocations: 0.8864 MB / 444.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006476/0.325, allocations: 298.3 kB / 444.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.325, allocations: 5.969 kB / 444.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00032/0.3254, allocations: 201.2 kB / 444.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.3256, allocations: 34.72 kB / 444.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004526/0.3302, allocations: 2.913 MB / 447.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004129/0.3306, allocations: 0.7724 MB / 448.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001224/0.3307, allocations: 27 kB / 448.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.3308, allocations: 103.1 kB / 448.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3308, allocations: 0 / 448.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03717/0.368, allocations: 6.131 MB / 454.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.91, allocations: 10.42 kB / 454.7 MB, free: 11.99 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.52316097682342] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 11.999957144726068 12.014121821 11.70123341 Calling exit ...