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.00142/0.00142, 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.001419/0.001419, 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.455/1.455, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.002019/0.002019, allocations: 72.77 kB / 378.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2762, allocations: 53.36 MB / 431.9 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004984/0.2812, allocations: 3.536 MB / 435.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.2829, allocations: 0.858 MB / 436.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/0.2831, allocations: 7.938 kB / 436.3 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002054/0.2833, allocations: 67.3 kB / 436.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002605/0.2835, allocations: 142.8 kB / 436.5 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.2839, allocations: 131.8 kB / 436.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005611/0.2845, allocations: 0.5016 MB / 437.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.2847, allocations: 103.3 kB / 437.3 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003131/0.285, allocations: 199.3 kB / 437.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002723/0.2853, allocations: 207 kB / 437.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.409e-05/0.2853, allocations: 44 kB / 437.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.2854, allocations: 47.98 kB / 437.8 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.301e-05/0.2855, allocations: 91.62 kB / 437.8 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002212/0.2857, allocations: 226.9 kB / 438.1 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005575/0.2863, allocations: 497.9 kB / 438.6 MB, free: 188 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2863, allocations: 0 / 438.6 MB, free: 188 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2863, allocations: 0 / 438.6 MB, free: 188 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.2863, allocations: 0 / 438.6 MB, free: 188 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.00114/0.2874, allocations: 0.6669 MB / 439.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.2875, allocations: 8.031 kB / 439.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.943e-05/0.2876, allocations: 74.72 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003355/0.2879, allocations: 80.58 kB / 439.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005083/0.2884, allocations: 266.2 kB / 439.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.108e-05/0.2884, allocations: 25.03 kB / 439.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.2885, allocations: 28.38 kB / 439.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006752/0.2892, allocations: 366.8 kB / 440 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.2892, allocations: 0 / 440 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.263e-05/0.2892, allocations: 15.94 kB / 440.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.2892, allocations: 11.98 kB / 440.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005715/0.2898, allocations: 262.4 kB / 440.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.2919, allocations: 1.376 MB / 441.7 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004211/0.2923, allocations: 213.2 kB / 441.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.2925, allocations: 97.22 kB / 442 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.2925, allocations: 4 kB / 442 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.2926, allocations: 38.42 kB / 442.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.2926, allocations: 0 / 442.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001441/0.294, allocations: 484.3 kB / 442.5 MB, free: 12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.2941, allocations: 55.41 kB / 442.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003479/0.2944, allocations: 308.6 kB / 442.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/0.2945, allocations: 29.7 kB / 442.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.2946, allocations: 216.5 kB / 443.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.754e-05/0.2947, allocations: 83.31 kB / 443.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.333e-05/0.2948, allocations: 53.66 kB / 443.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.2949, allocations: 338.8 kB / 443.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.2951, allocations: 79.97 kB / 443.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.2954, allocations: 136.2 kB / 443.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003881/0.2957, allocations: 192.1 kB / 444 MB, free: 10.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2958, allocations: 0 / 444 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007358/0.2965, allocations: 355.7 kB / 444.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.2965, allocations: 4 kB / 444.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2965, allocations: 0 / 444.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004161/0.2969, allocations: 118.5 kB / 444.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.2971, allocations: 43.91 kB / 444.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004251/0.3014, allocations: 4.657 MB / 449.2 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.3016, allocations: 28.14 kB / 449.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.3016, allocations: 11.98 kB / 449.2 MB, free: 4.891 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.0002207/0.3019, allocations: 145.8 kB / 449.3 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.264e-05/0.3019, allocations: 39.73 kB / 449.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.742e-05/0.302, allocations: 43.33 kB / 449.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.302, allocations: 4 kB / 449.4 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.302, allocations: 3.938 kB / 449.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.302, allocations: 128 / 449.4 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005011/0.3025, allocations: 360.3 kB / 449.8 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3025, allocations: 3.938 kB / 449.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.3026, allocations: 19.98 kB / 449.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003584/0.303, allocations: 110.5 kB / 449.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.303, allocations: 8 kB / 449.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004345/0.3074, allocations: 4.661 MB / 454.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3074, allocations: 256 / 454.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007328/0.3081, allocations: 409.3 kB / 455 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.3082, allocations: 51.72 kB / 455 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.3083, allocations: 7.984 kB / 455 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002506/0.3085, allocations: 19.98 kB / 455.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.565e-05/0.3086, allocations: 31.89 kB / 455.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.3086, allocations: 4 kB / 455.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002576/0.3089, allocations: 223.1 kB / 455.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3089, allocations: 4 kB / 455.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007118/0.3096, allocations: 119.8 kB / 455.4 MB, free: 14.23 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.0009891/0.3106, allocations: 0.9294 MB / 456.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3116, allocations: 0.5582 MB / 456.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.3116, allocations: 128 / 456.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005788/0.3122, allocations: 478.7 kB / 457.4 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.3126, allocations: 63.36 kB / 457.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004757/0.3174, allocations: 3.151 MB / 460.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.3179, allocations: 0.7992 MB / 461.4 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.318, allocations: 22.98 kB / 461.4 MB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.3181, allocations: 111.4 kB / 461.5 MB, free: 7.883 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3181, allocations: 0 / 461.5 MB, free: 7.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04427/0.3624, allocations: 8.973 MB / 470.5 MB, free: 15.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.7, allocations: 11.98 kB / 470.5 MB, free: 15.07 MB / 382.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --stepSize=0.000199521 --timeout=50 --tolerance=1e-06 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.08083109697327] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 12.801726771052927 12.827818196 12.536764932 Calling exit ...