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.001189/0.001189, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001349/0.001349, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.374/1.374, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.001836/0.001836, allocations: 64.77 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2784, allocations: 53.37 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005942/0.2843, allocations: 3.535 MB / 435.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001415/0.2857, allocations: 0.8568 MB / 436.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.2859, allocations: 11.94 kB / 436.3 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.2861, allocations: 67.3 kB / 436.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002306/0.2863, allocations: 138.8 kB / 436.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.2867, allocations: 131.8 kB / 436.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005632/0.2872, allocations: 0.5094 MB / 437.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002153/0.2874, allocations: 99.62 kB / 437.3 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/0.2877, allocations: 199.3 kB / 437.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002718/0.288, allocations: 215 kB / 437.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.789e-05/0.2881, allocations: 40 kB / 437.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.861e-05/0.2882, allocations: 44 kB / 437.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.07e-05/0.2882, allocations: 87.62 kB / 437.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001959/0.2884, allocations: 222.9 kB / 438.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005313/0.289, allocations: 0.494 MB / 438.6 MB, free: 212 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.289, allocations: 0 / 438.6 MB, free: 212 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.289, allocations: 0 / 438.6 MB, free: 212 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.289, allocations: 7.938 kB / 438.6 MB, free: 204 kB / 334.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.001115/0.2901, allocations: 0.6608 MB / 439.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.2901, allocations: 8.031 kB / 439.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.682e-05/0.2902, allocations: 74.72 kB / 439.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003249/0.2905, allocations: 76.58 kB / 439.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004602/0.291, allocations: 270.3 kB / 439.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.291, allocations: 21.03 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.2911, allocations: 32.38 kB / 439.7 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006254/0.2917, allocations: 362.9 kB / 440 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.2917, allocations: 3.938 kB / 440.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.2917, allocations: 12 kB / 440.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.2918, allocations: 11.94 kB / 440.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005343/0.2923, allocations: 266.4 kB / 440.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.2942, allocations: 1.376 MB / 441.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.2946, allocations: 206.4 kB / 441.9 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.2948, allocations: 93.23 kB / 442 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.089e-05/0.2949, allocations: 4 kB / 442 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/0.2949, allocations: 38.41 kB / 442 MB, free: 12.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.162e-06/0.2949, allocations: 0 / 442 MB, free: 12.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001378/0.2963, allocations: 488.3 kB / 442.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.2963, allocations: 55.41 kB / 442.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003397/0.2967, allocations: 312.6 kB / 442.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.2967, allocations: 29.7 kB / 442.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.2968, allocations: 212.5 kB / 443.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.708e-05/0.2969, allocations: 87.31 kB / 443.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.352e-05/0.297, allocations: 49.66 kB / 443.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.2971, allocations: 342.8 kB / 443.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.2973, allocations: 71.97 kB / 443.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.2976, allocations: 132.2 kB / 443.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003812/0.2979, allocations: 204.1 kB / 444 MB, free: 10.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2979, allocations: 4 kB / 444 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006967/0.2986, allocations: 347.7 kB / 444.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2986, allocations: 4.281 kB / 444.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.2987, allocations: 4 kB / 444.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004171/0.2991, allocations: 114.6 kB / 444.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.2992, allocations: 43.78 kB / 444.5 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004027/0.3033, allocations: 4.66 MB / 449.2 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.3035, allocations: 27.86 kB / 449.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.3035, allocations: 12.19 kB / 449.2 MB, free: 4.906 MB / 350.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.0001779/0.3037, allocations: 153.8 kB / 449.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.248e-05/0.3037, allocations: 39.8 kB / 449.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.122e-05/0.3038, allocations: 39.27 kB / 449.4 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.3038, allocations: 4 kB / 449.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.3038, allocations: 0 / 449.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3038, allocations: 3.938 kB / 449.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.3042, allocations: 348.3 kB / 449.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.3042, allocations: 0 / 449.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.3043, allocations: 23.92 kB / 449.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003066/0.3046, allocations: 118.5 kB / 449.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.3046, allocations: 4 kB / 449.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003855/0.3085, allocations: 4.669 MB / 454.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3085, allocations: 0 / 454.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005985/0.3091, allocations: 401.3 kB / 455 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.3092, allocations: 47.72 kB / 455 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.614e-05/0.3092, allocations: 11.98 kB / 455 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.3094, allocations: 19.98 kB / 455 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.562e-05/0.3095, allocations: 31.83 kB / 455.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.3095, allocations: 12 kB / 455.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002285/0.3098, allocations: 219.1 kB / 455.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3098, allocations: 0 / 455.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006204/0.3104, allocations: 115.8 kB / 455.4 MB, free: 14.26 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.0009283/0.3113, allocations: 0.9372 MB / 456.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008879/0.3122, allocations: 0.5582 MB / 456.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3122, allocations: 4 kB / 456.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005198/0.3127, allocations: 470.7 kB / 457.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.3131, allocations: 61.98 kB / 457.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004317/0.3175, allocations: 3.155 MB / 460.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004092/0.3179, allocations: 0.7992 MB / 461.4 MB, free: 8.027 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.318, allocations: 22.97 kB / 461.4 MB, free: 8.008 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001422/0.3181, allocations: 115.3 kB / 461.5 MB, free: 7.895 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3181, allocations: 4 kB / 461.5 MB, free: 7.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04154/0.3597, allocations: 8.967 MB / 470.5 MB, free: 15.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.84, allocations: 3.562 kB / 470.5 MB, free: 15.1 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.239817678462714] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 11.930828973185271 11.945075553 11.653208812999999 Calling exit ...