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.001243/0.001243, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001355/0.001355, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.486/1.486, allocations: 230.5 MB / 254.7 MB, free: 14.97 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.001941/0.001941, allocations: 71.83 kB / 373.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1105, allocations: 53.31 MB / 426.9 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004984/0.1155, allocations: 3.525 MB / 430.4 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.1173, allocations: 0.8569 MB / 431.3 MB, free: 412 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002408/0.1176, allocations: 4 kB / 431.3 MB, free: 408 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.1178, allocations: 71.28 kB / 431.4 MB, free: 336 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.1181, allocations: 138.8 kB / 431.5 MB, free: 196 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.1185, allocations: 127.8 kB / 431.6 MB, free: 68 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2226/0.3411, allocations: 0.5084 MB / 432.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003848/0.3415, allocations: 97.95 kB / 432.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006029/0.3421, allocations: 190.7 kB / 432.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000448/0.3426, allocations: 214.6 kB / 432.6 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.3427, allocations: 40.45 kB / 432.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002124/0.3429, allocations: 43.72 kB / 432.7 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.018e-05/0.343, allocations: 92.2 kB / 432.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002737/0.3433, allocations: 220.4 kB / 433 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006657/0.3439, allocations: 0.4936 MB / 433.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3439, allocations: 3.688 kB / 433.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3439, allocations: 0.875 kB / 433.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.089e-05/0.344, allocations: 0 / 433.5 MB, free: 7.375 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001271/0.3452, allocations: 0.7355 MB / 434.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.3453, allocations: 13.84 kB / 434.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.344e-05/0.3454, allocations: 67.59 kB / 434.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003787/0.3457, allocations: 83.14 kB / 434.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.3462, allocations: 328.5 kB / 434.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.629e-05/0.3463, allocations: 23.19 kB / 434.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.3463, allocations: 32.06 kB / 434.8 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005802/0.3469, allocations: 357.5 kB / 435.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.3469, allocations: 8.625 kB / 435.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.3469, allocations: 13.25 kB / 435.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.347, allocations: 8.562 kB / 435.1 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005014/0.3475, allocations: 270 kB / 435.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.3493, allocations: 1.404 MB / 436.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004402/0.3497, allocations: 207.9 kB / 437 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.3499, allocations: 98.55 kB / 437.1 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.35, allocations: 5.672 kB / 437.1 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.35, allocations: 37.73 kB / 437.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.35, allocations: 0 / 437.2 MB, free: 5.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001531/0.3515, allocations: 0.71 MB / 437.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.3516, allocations: 53.72 kB / 437.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/0.3519, allocations: 309.4 kB / 438.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.352, allocations: 29.39 kB / 438.3 MB, free: 5.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.3521, allocations: 212.9 kB / 438.5 MB, free: 4.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.742e-05/0.3521, allocations: 85.44 kB / 438.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.771e-05/0.3522, allocations: 53.23 kB / 438.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.378e-05/0.3523, allocations: 341.9 kB / 438.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.3525, allocations: 79.17 kB / 439 MB, free: 4.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002024/0.3527, allocations: 126.4 kB / 439.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003586/0.3531, allocations: 206.4 kB / 439.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3531, allocations: 0 / 439.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006901/0.3538, allocations: 351.6 kB / 439.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3538, allocations: 6.391 kB / 439.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.3538, allocations: 1.156 kB / 439.7 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004176/0.3542, allocations: 114.2 kB / 439.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.3544, allocations: 36.2 kB / 439.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003343/0.3577, allocations: 4.97 MB / 444.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.358, allocations: 32.88 kB / 444.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.358, allocations: 7.078 kB / 444.8 MB, free: 15.32 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.0002084/0.3582, allocations: 150.3 kB / 445 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.58e-05/0.3583, allocations: 36.31 kB / 445 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.87e-05/0.3583, allocations: 40.12 kB / 445.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.3584, allocations: 3.031 kB / 445.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.3584, allocations: 6.438 kB / 445.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3584, allocations: 1.734 kB / 445.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006115/0.359, allocations: 383.9 kB / 445.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.359, allocations: 0 / 445.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.3591, allocations: 21.12 kB / 445.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003625/0.3595, allocations: 115.9 kB / 445.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.3595, allocations: 1.625 kB / 445.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004582/0.3641, allocations: 4.978 MB / 450.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.3641, allocations: 2.031 kB / 450.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007949/0.3649, allocations: 394.1 kB / 450.9 MB, free: 9.727 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/0.3651, allocations: 128.4 kB / 451.1 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.076e-05/0.3651, allocations: 13.42 kB / 451.1 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.3654, allocations: 20.97 kB / 451.1 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.3655, allocations: 23.75 kB / 451.1 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.751e-05/0.3655, allocations: 17.08 kB / 451.1 MB, free: 9.574 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003296/0.3658, allocations: 220.8 kB / 451.4 MB, free: 9.453 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3658, allocations: 0 / 451.4 MB, free: 9.453 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007591/0.3666, allocations: 114.6 kB / 451.5 MB, free: 9.43 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.001049/0.3676, allocations: 0.9368 MB / 452.4 MB, free: 8.652 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.3687, allocations: 0.5676 MB / 453 MB, free: 8.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3687, allocations: 1.031 kB / 453 MB, free: 8.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006374/0.3693, allocations: 472.7 kB / 453.4 MB, free: 7.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.3698, allocations: 62.28 kB / 453.5 MB, free: 7.816 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005382/0.3752, allocations: 3.142 MB / 456.6 MB, free: 5.805 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005772/0.3757, allocations: 0.7957 MB / 457.4 MB, free: 5.105 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001642/0.3759, allocations: 26.8 kB / 457.5 MB, free: 5.102 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.3761, allocations: 110.1 kB / 457.6 MB, free: 5.016 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3761, allocations: 0 / 457.6 MB, free: 5.016 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04356/0.4197, allocations: 8.807 MB / 466.4 MB, free: 2.523 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.22, allocations: 7.891 kB / 466.4 MB, free: 2.52 MB / 366.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 & /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: 14.628236112650484] Failed to read output from testmodel.py, exit status != 0: ['time', 'Ideal.v', 'With_Ron_Goff.v', 'With_Ron_Goff_Vknee.v'] 12.316018857993186 12.331277364 11.984357807 Calling exit ...