Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.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.00136/0.00136, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.00147/0.00147, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.434/1.434, allocations: 230.6 MB / 258.3 MB, free: 8.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.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OvervoltageProtection",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.002042/0.002042, allocations: 64.75 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2805, allocations: 53.37 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004567/0.2851, allocations: 2.741 MB / 434.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001522/0.2866, allocations: 0.7283 MB / 435.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002252/0.2868, allocations: 7.938 kB / 435.4 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002075/0.287, allocations: 39.58 kB / 435.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.2873, allocations: 87.27 kB / 435.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.2877, allocations: 107.8 kB / 435.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004479/0.2881, allocations: 362.5 kB / 436 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.2883, allocations: 60.89 kB / 436 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002933/0.2886, allocations: 155.5 kB / 436.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.2888, allocations: 159.4 kB / 436.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.735e-05/0.2889, allocations: 28 kB / 436.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.165e-05/0.289, allocations: 40 kB / 436.4 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.196e-05/0.289, allocations: 71.69 kB / 436.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.2892, allocations: 147.3 kB / 436.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004376/0.2896, allocations: 350.7 kB / 437 MB, free: 1.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2896, allocations: 0 / 437 MB, free: 1.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2896, allocations: 0 / 437 MB, free: 1.797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.2896, allocations: 0 / 437 MB, free: 1.797 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001518/0.2912, allocations: 0.5754 MB / 437.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.2912, allocations: 12.03 kB / 437.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.549e-05/0.2913, allocations: 62.72 kB / 437.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.2914, allocations: 36.75 kB / 437.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.2918, allocations: 203 kB / 437.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.2918, allocations: 16.81 kB / 437.9 MB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.2919, allocations: 20.38 kB / 437.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006717/0.2926, allocations: 302.7 kB / 438.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.2926, allocations: 3.938 kB / 438.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.2926, allocations: 8 kB / 438.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.2926, allocations: 4 kB / 438.2 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008099/0.2934, allocations: 273.5 kB / 438.5 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.2952, allocations: 1.031 MB / 439.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001984/0.2972, allocations: 434.2 kB / 439.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000398/0.2976, allocations: 132.8 kB / 440.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.2976, allocations: 0 / 440.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.298e-05/0.2976, allocations: 38.56 kB / 440.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.2976, allocations: 0 / 440.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.005128/0.3028, allocations: 0.9542 MB / 441 MB, free: 13.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.3028, allocations: 51.41 kB / 441.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.3031, allocations: 216.9 kB / 441.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.3031, allocations: 33.7 kB / 441.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.3033, allocations: 164.2 kB / 441.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.265e-05/0.3033, allocations: 51.62 kB / 441.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.502e-05/0.3034, allocations: 37.66 kB / 441.6 MB, free: 12.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3036, allocations: 330.8 kB / 441.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000356/0.3039, allocations: 103.9 kB / 442 MB, free: 12.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/0.3043, allocations: 129.5 kB / 442.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007096/0.305, allocations: 236.5 kB / 442.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.305, allocations: 7.875 kB / 442.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.003029/0.308, allocations: 0.6269 MB / 443 MB, free: 11.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.308, allocations: 4 kB / 443 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.308, allocations: 0 / 443 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007657/0.3088, allocations: 220.7 kB / 443.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.309, allocations: 31.97 kB / 443.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007444/0.3164, allocations: 2.647 MB / 445.9 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003522/0.3168, allocations: 43.81 kB / 445.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.3168, allocations: 7.984 kB / 446 MB, free: 8.453 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001927/0.317, allocations: 133.8 kB / 446.1 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.858e-05/0.3171, allocations: 19.91 kB / 446.1 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.678e-05/0.3172, allocations: 25.77 kB / 446.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.3172, allocations: 0 / 446.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.3172, allocations: 0 / 446.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3172, allocations: 4 kB / 446.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004414/0.3176, allocations: 292.4 kB / 446.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.3176, allocations: 0 / 446.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.3178, allocations: 27.98 kB / 446.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006956/0.3185, allocations: 228.7 kB / 446.7 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.326e-05/0.3185, allocations: 7.984 kB / 446.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006937/0.3254, allocations: 2.639 MB / 449.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3254, allocations: 0 / 449.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003442/0.3289, allocations: 0.8434 MB / 450.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.99e-05/0.3289, allocations: 19.88 kB / 450.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.8e-05/0.329, allocations: 8 kB / 450.2 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002994/0.3293, allocations: 31.91 kB / 450.2 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.3293, allocations: 11.98 kB / 450.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.3293, allocations: 7.984 kB / 450.2 MB, free: 3.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001756/0.3295, allocations: 160.5 kB / 450.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3295, allocations: 4 kB / 450.4 MB, free: 3.812 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004651/0.33, allocations: 79.83 kB / 450.5 MB, free: 3.734 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003828/0.3338, allocations: 1.387 MB / 451.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.3355, allocations: 438.4 kB / 452.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3355, allocations: 0 / 452.3 MB, free: 1.875 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.3367, allocations: 333.9 kB / 452.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.3371, allocations: 40.58 kB / 452.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009272/0.3464, allocations: 3.355 MB / 456 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.3468, allocations: 0.7437 MB / 456.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001066/0.3469, allocations: 21.47 kB / 456.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.347, allocations: 71.41 kB / 456.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.347, allocations: 0 / 456.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04053/0.3875, allocations: 7.466 MB / 464.3 MB, free: 5.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.38, allocations: 10.33 kB / 464.3 MB, free: 5.863 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.7066206112504] Failed to read output from testmodel.py, exit status != 0: ['time', 'CL.v'] 12.477361839264631 12.503391679 12.208741049 Calling exit ...