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.001299/0.001299, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.001411/0.001411, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.455/1.455, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.001897/0.001897, allocations: 67.84 kB / 373.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1068, allocations: 53.32 MB / 426.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00451/0.1113, allocations: 3.168 MB / 430.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001577/0.1128, allocations: 0.8256 MB / 430.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002079/0.1131, allocations: 4 kB / 430.9 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001978/0.1133, allocations: 63.42 kB / 431 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002246/0.1135, allocations: 111 kB / 431.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000433/0.1139, allocations: 119.7 kB / 431.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004674/0.1144, allocations: 414.2 kB / 431.6 MB, free: 128 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.1146, allocations: 99.75 kB / 431.7 MB, free: 20 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.198/0.3126, allocations: 162 kB / 431.8 MB, free: 7.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000279/0.3129, allocations: 173.4 kB / 432 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.681e-05/0.3129, allocations: 36.41 kB / 432.1 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000106/0.313, allocations: 39.66 kB / 432.1 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.056e-05/0.3131, allocations: 83.88 kB / 432.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.3133, allocations: 185.4 kB / 432.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.3138, allocations: 436.6 kB / 432.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3138, allocations: 0 / 432.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3138, allocations: 1.031 kB / 432.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.3138, allocations: 1.969 kB / 432.8 MB, free: 7.52 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.000956/0.3148, allocations: 0.6565 MB / 433.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.3148, allocations: 10.38 kB / 433.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.739e-05/0.3149, allocations: 76 kB / 433.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.315, allocations: 54.09 kB / 433.6 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003674/0.3154, allocations: 280.9 kB / 433.8 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.216e-05/0.3155, allocations: 77.06 kB / 433.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.057e-05/0.3155, allocations: 35.91 kB / 434 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.316, allocations: 342 kB / 434.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.316, allocations: 3.469 kB / 434.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.316, allocations: 12.84 kB / 434.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.3161, allocations: 9.219 kB / 434.3 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003467/0.3164, allocations: 222.2 kB / 434.5 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.318, allocations: 1.357 MB / 435.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003016/0.3183, allocations: 163.9 kB / 436.1 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000141/0.3184, allocations: 85.47 kB / 436.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.3185, allocations: 4.062 kB / 436.1 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002641/0.3187, allocations: 152.6 kB / 436.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.3187, allocations: 1.594 kB / 436.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001037/0.3198, allocations: 405.5 kB / 436.7 MB, free: 5.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.3198, allocations: 114.2 kB / 436.8 MB, free: 5.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/0.32, allocations: 262.2 kB / 437.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.3201, allocations: 30.08 kB / 437.1 MB, free: 5.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.3202, allocations: 215.8 kB / 437.3 MB, free: 5.168 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.896e-05/0.3202, allocations: 78.06 kB / 437.4 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.728e-05/0.3203, allocations: 64.52 kB / 437.4 MB, free: 5.102 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.53e-05/0.3203, allocations: 335.6 kB / 437.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.3205, allocations: 79.92 kB / 437.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.3207, allocations: 178 kB / 438 MB, free: 4.672 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.321, allocations: 232.6 kB / 438.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.321, allocations: 1.375 kB / 438.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006853/0.3217, allocations: 347.9 kB / 438.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.3217, allocations: 6.719 kB / 438.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3217, allocations: 2.125 kB / 438.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002691/0.322, allocations: 59.3 kB / 438.6 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.3222, allocations: 62.44 kB / 438.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009932/0.3232, allocations: 1.568 MB / 440.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002913/0.3235, allocations: 47.33 kB / 440.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.407e-05/0.3235, allocations: 13.02 kB / 440.3 MB, free: 2.984 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.000144/0.3237, allocations: 154.3 kB / 440.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.878e-05/0.3237, allocations: 26.94 kB / 440.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.354e-05/0.3238, allocations: 33.69 kB / 440.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3238, allocations: 2.375 kB / 440.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3238, allocations: 4.844 kB / 440.6 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3238, allocations: 5.328 kB / 440.6 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003169/0.3241, allocations: 343.3 kB / 440.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3241, allocations: 1.219 kB / 440.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001905/0.3243, allocations: 36.47 kB / 440.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/0.3245, allocations: 59.25 kB / 441 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.3245, allocations: 3.328 kB / 441 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008421/0.3253, allocations: 1.419 MB / 442.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3253, allocations: 0 / 442.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006504/0.326, allocations: 355.9 kB / 442.8 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.857e-05/0.3261, allocations: 113.9 kB / 442.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.3261, allocations: 10.48 kB / 442.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.3263, allocations: 15.92 kB / 442.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.387e-05/0.3264, allocations: 34.52 kB / 442.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.3264, allocations: 5.203 kB / 442.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.3265, allocations: 187.1 kB / 443.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3265, allocations: 1.188 kB / 443.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004158/0.327, allocations: 97.22 kB / 443.2 MB, free: 0.7266 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.0008273/0.3278, allocations: 0.8875 MB / 444.1 MB, free: 20 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007207/0.3285, allocations: 312.8 kB / 444.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3285, allocations: 0 / 444.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003184/0.3288, allocations: 193 kB / 444.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.3291, allocations: 47.06 kB / 444.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004692/0.3338, allocations: 2.913 MB / 447.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.3343, allocations: 0.7739 MB / 448.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001462/0.3344, allocations: 35.16 kB / 448.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.3346, allocations: 93.09 kB / 448.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3346, allocations: 0 / 448.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04807/0.3826, allocations: 6.127 MB / 454.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.87, allocations: 13.44 kB / 454.6 MB, free: 12.23 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 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.200020693708211] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 11.965190341230482 11.986113148 11.668820923 Calling exit ...