Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 116.6 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001999/0.001999, allocations: 193 kB / 21.43 MB, free: 1.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 48.06 kB / 366.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1075, allocations: 52.14 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003936/0.1114, allocations: 2.715 MB / 421.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.1126, allocations: 0.6778 MB / 421.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.1127, allocations: 4 kB / 421.9 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.1129, allocations: 47.5 kB / 421.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001441/0.1131, allocations: 71.34 kB / 422 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.1134, allocations: 103.8 kB / 422.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003929/0.1137, allocations: 358.6 kB / 422.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.1139, allocations: 68.64 kB / 422.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.1141, allocations: 139.5 kB / 422.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.1144, allocations: 167.4 kB / 422.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.245e-05/0.1144, allocations: 32 kB / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.566e-05/0.1145, allocations: 28 kB / 422.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.595e-05/0.1145, allocations: 67.75 kB / 422.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.1147, allocations: 143.4 kB / 423.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003951/0.1151, allocations: 346.6 kB / 423.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1151, allocations: 4 kB / 423.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1151, allocations: 0 / 423.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1151, allocations: 0 / 423.4 MB, free: 7.652 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001556/0.1166, allocations: 0.6429 MB / 424.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.1167, allocations: 16.02 kB / 424.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.272e-05/0.1167, allocations: 4.625 kB / 424.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.526e-05/0.1168, allocations: 54.73 kB / 424.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.081e-05/0.1169, allocations: 36.69 kB / 424.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003752/0.1172, allocations: 268.8 kB / 424.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.1173, allocations: 12.81 kB / 424.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.851e-05/0.1173, allocations: 20.38 kB / 424.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007082/0.118, allocations: 302.6 kB / 424.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.118, allocations: 4 kB / 424.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.1181, allocations: 4 kB / 424.8 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.1181, allocations: 8 kB / 424.8 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008041/0.1189, allocations: 269.5 kB / 425 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.1207, allocations: 1.07 MB / 426.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.1226, allocations: 430.3 kB / 426.5 MB, free: 4.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004065/0.123, allocations: 140.7 kB / 426.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.1231, allocations: 0 / 426.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.1231, allocations: 42.5 kB / 426.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.1231, allocations: 3.938 kB / 426.7 MB, free: 4.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.004872/0.128, allocations: 1.017 MB / 427.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.128, allocations: 55.41 kB / 427.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.1283, allocations: 216.2 kB / 428 MB, free: 2.809 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.1283, allocations: 25.7 kB / 428 MB, free: 2.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.1284, allocations: 156.3 kB / 428.2 MB, free: 2.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.757e-05/0.1285, allocations: 63.5 kB / 428.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.625e-05/0.1286, allocations: 33.64 kB / 428.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1287, allocations: 338.8 kB / 428.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003605/0.1291, allocations: 103.9 kB / 428.7 MB, free: 2.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.1294, allocations: 125.5 kB / 428.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006888/0.1301, allocations: 231.6 kB / 429.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1301, allocations: 4 kB / 429.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002907/0.133, allocations: 0.6307 MB / 429.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1331, allocations: 4 kB / 429.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/0.1331, allocations: 0 / 429.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007726/0.1338, allocations: 216.7 kB / 429.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.134, allocations: 39.91 kB / 429.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007034/0.1411, allocations: 2.739 MB / 432.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002972/0.1414, allocations: 35.91 kB / 432.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.1414, allocations: 7.984 kB / 432.7 MB, free: 13.9 MB / 366.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.0001676/0.1415, allocations: 130.4 kB / 432.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.379e-05/0.1416, allocations: 23.97 kB / 432.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.019e-05/0.1417, allocations: 29.45 kB / 432.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.1417, allocations: 4.078 kB / 432.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1417, allocations: 4 kB / 432.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1417, allocations: 0 / 432.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004053/0.1421, allocations: 337.2 kB / 433.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1421, allocations: 0 / 433.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.1422, allocations: 27.98 kB / 433.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006774/0.1429, allocations: 228.6 kB / 433.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.1429, allocations: 4 kB / 433.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007132/0.1501, allocations: 2.731 MB / 436.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1501, allocations: 0 / 436.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003423/0.1535, allocations: 0.8455 MB / 437.1 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.1536, allocations: 96.98 kB / 437.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.1536, allocations: 4.062 kB / 437.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003074/0.1539, allocations: 35.97 kB / 437.2 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.471e-05/0.154, allocations: 11.98 kB / 437.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.154, allocations: 4 kB / 437.2 MB, free: 9.156 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.1542, allocations: 157.8 kB / 437.4 MB, free: 9.004 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1542, allocations: 0 / 437.4 MB, free: 9.004 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004692/0.1546, allocations: 83.83 kB / 437.5 MB, free: 8.922 MB / 366.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.003623/0.1583, allocations: 1.384 MB / 438.8 MB, free: 7.512 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.1599, allocations: 444.5 kB / 439.3 MB, free: 7.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1599, allocations: 0 / 439.3 MB, free: 7.066 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.161, allocations: 326.5 kB / 439.6 MB, free: 6.734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/0.1614, allocations: 44.58 kB / 439.6 MB, free: 6.691 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009017/0.1704, allocations: 3.344 MB / 443 MB, free: 3.258 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.1708, allocations: 0.7437 MB / 443.7 MB, free: 2.488 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.191e-05/0.1709, allocations: 25.47 kB / 443.8 MB, free: 2.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.171, allocations: 67.42 kB / 443.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.171, allocations: 0 / 443.8 MB, free: 2.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.206/0.377, allocations: 7.375 MB / 451.2 MB, free: 31 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.99, allocations: 8.031 kB / 451.2 MB, free: 31 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.342668407014571] Failed to read output from testmodel.py, exit status != 0: ['time', 'CL.v'] 12.138564281980507 12.149851043 12.032199051 Calling exit ...