Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.001873/0.001873, allocations: 121.4 kB / 18.51 MB, free: 4.539 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.002228/0.002228, allocations: 213.6 kB / 21.46 MB, free: 1.59 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.552/1.552, allocations: 230.5 MB / 254.8 MB, free: 15.21 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.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",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.002267/0.002267, allocations: 63.84 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1063, allocations: 53.34 MB / 427 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005286/0.1116, allocations: 3.522 MB / 430.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.1134, allocations: 0.8529 MB / 431.4 MB, free: 380 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003219/0.1138, allocations: 8 kB / 431.4 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002637/0.114, allocations: 67.3 kB / 431.5 MB, free: 304 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004144/0.1144, allocations: 134.8 kB / 431.6 MB, free: 168 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/0.1149, allocations: 139.7 kB / 431.7 MB, free: 28 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007391/0.1156, allocations: 0.5093 MB / 432.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.1158, allocations: 95.28 kB / 432.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003959/0.1162, allocations: 203.2 kB / 432.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003115/0.1165, allocations: 211.1 kB / 432.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.343e-05/0.1166, allocations: 44 kB / 432.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.1168, allocations: 44 kB / 432.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.233e-05/0.1169, allocations: 87.62 kB / 432.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.1171, allocations: 222.9 kB / 433.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006357/0.1177, allocations: 0.494 MB / 433.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1177, allocations: 0 / 433.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1177, allocations: 0 / 433.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.1178, allocations: 4 kB / 433.6 MB, free: 14.12 MB / 366.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.001286/0.119, allocations: 0.7359 MB / 434.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.1191, allocations: 8.031 kB / 434.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.591e-05/0.1192, allocations: 74.66 kB / 434.5 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004026/0.1196, allocations: 80.58 kB / 434.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.1201, allocations: 327.5 kB / 434.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.1201, allocations: 25.03 kB / 434.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.995e-05/0.1201, allocations: 32.38 kB / 434.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007038/0.1208, allocations: 358.9 kB / 435.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.1209, allocations: 0 / 435.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.882e-05/0.1209, allocations: 16 kB / 435.3 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.1209, allocations: 8 kB / 435.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006103/0.1215, allocations: 270.4 kB / 435.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002226/0.1237, allocations: 1.419 MB / 437 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004909/0.1242, allocations: 202.4 kB / 437.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/0.1245, allocations: 101.2 kB / 437.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.1245, allocations: 0 / 437.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.851e-05/0.1245, allocations: 42.42 kB / 437.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.1246, allocations: 0 / 437.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.001673/0.1262, allocations: 0.6942 MB / 438 MB, free: 9.457 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.1263, allocations: 59.34 kB / 438.1 MB, free: 9.387 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004008/0.1267, allocations: 312.5 kB / 438.4 MB, free: 9.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.1267, allocations: 33.7 kB / 438.4 MB, free: 9.031 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.1269, allocations: 216.5 kB / 438.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.334e-05/0.1269, allocations: 83.27 kB / 438.7 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.127, allocations: 49.66 kB / 438.7 MB, free: 8.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.1272, allocations: 342.8 kB / 439.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.1274, allocations: 83.89 kB / 439.2 MB, free: 8.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.1277, allocations: 128.2 kB / 439.3 MB, free: 8.113 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004231/0.1281, allocations: 196.1 kB / 439.5 MB, free: 7.906 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1281, allocations: 4 kB / 439.5 MB, free: 7.902 MB / 366.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008015/0.1289, allocations: 347.7 kB / 439.8 MB, free: 7.547 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.1289, allocations: 8 kB / 439.8 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1289, allocations: 11.92 kB / 439.8 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004389/0.1294, allocations: 118.6 kB / 439.9 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.1296, allocations: 27.92 kB / 440 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004568/0.1341, allocations: 4.967 MB / 444.9 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002883/0.1344, allocations: 27.83 kB / 445 MB, free: 1.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.1344, allocations: 8 kB / 445 MB, free: 1.953 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002219/0.1347, allocations: 157.7 kB / 445.1 MB, free: 1.789 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.299e-05/0.1347, allocations: 35.88 kB / 445.2 MB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.165e-05/0.1348, allocations: 39.17 kB / 445.2 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1348, allocations: 4 kB / 445.2 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.1348, allocations: 128 / 445.2 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.1348, allocations: 4 kB / 445.2 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005328/0.1354, allocations: 381.2 kB / 445.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1354, allocations: 0 / 445.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.1355, allocations: 19.98 kB / 445.6 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003672/0.1359, allocations: 122.4 kB / 445.7 MB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.1359, allocations: 4 kB / 445.7 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1817/0.3175, allocations: 4.96 MB / 450.7 MB, free: 20.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3175, allocations: 2.719 kB / 450.7 MB, free: 20.17 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006318/0.3182, allocations: 402.4 kB / 451.1 MB, free: 20.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.3183, allocations: 130.7 kB / 451.2 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.313e-05/0.3183, allocations: 4.562 kB / 451.2 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.3186, allocations: 19.89 kB / 451.2 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.8e-05/0.3186, allocations: 29.69 kB / 451.3 MB, free: 19.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.121e-05/0.3187, allocations: 8.906 kB / 451.3 MB, free: 19.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002372/0.3189, allocations: 224.8 kB / 451.5 MB, free: 19.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3189, allocations: 0 / 451.5 MB, free: 19.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006777/0.3196, allocations: 118.6 kB / 451.6 MB, free: 19.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000665/0.3202, allocations: 0.9387 MB / 452.5 MB, free: 19.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007661/0.321, allocations: 0.5582 MB / 453.1 MB, free: 18.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.321, allocations: 1.094 kB / 453.1 MB, free: 18.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000438/0.3214, allocations: 479.3 kB / 453.6 MB, free: 18.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004019/0.3219, allocations: 61.39 kB / 453.6 MB, free: 18.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003938/0.3258, allocations: 3.149 MB / 456.8 MB, free: 16.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002406/0.326, allocations: 0.798 MB / 457.6 MB, free: 16.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001227/0.3262, allocations: 22.48 kB / 457.6 MB, free: 16.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.3263, allocations: 110.3 kB / 457.7 MB, free: 16 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3263, allocations: 1.125 kB / 457.7 MB, free: 16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04436/0.3706, allocations: 8.796 MB / 466.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.45, allocations: 8.797 kB / 466.5 MB, free: 14.82 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199521 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.100369141902775] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 12.548717052210122 12.568809904 12.446932945 Calling exit ...