Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00137/0.00137, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.295/1.295, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007832/0.000783, allocations: 94.59 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002236, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.194, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08494/0.279, allocations: 77.4 MB / 453.3 MB, free: 3.266 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002003/0.2792, allocations: 71.95 kB / 453.4 MB, free: 3.195 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0156/0.2949, allocations: 6.318 MB / 459.7 MB, free: 12.83 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.2949, allocations: 4.312 kB / 459.7 MB, free: 12.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.225e-05/0.2949, allocations: 8 kB / 459.7 MB, free: 12.82 MB / 346.7 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.0009743/0.2959, allocations: 0.6583 MB / 460.4 MB, free: 12.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/0.296, allocations: 11.97 kB / 460.4 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.122e-05/0.296, allocations: 74.53 kB / 460.4 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.013e-05/0.2961, allocations: 55.38 kB / 460.5 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.2965, allocations: 302.1 kB / 460.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.2965, allocations: 20.66 kB / 460.8 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.2966, allocations: 32 kB / 460.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005986/0.2972, allocations: 354.8 kB / 461.2 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.2972, allocations: 0 / 461.2 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.2973, allocations: 16 kB / 461.2 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.2973, allocations: 11.98 kB / 461.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005056/0.2978, allocations: 282.4 kB / 461.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.2996, allocations: 1.427 MB / 462.9 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.3, allocations: 232.9 kB / 463.2 MB, free: 9.148 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.3, allocations: 4 kB / 463.2 MB, free: 9.145 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.3001, allocations: 34.56 kB / 463.2 MB, free: 9.102 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.3001, allocations: 0 / 463.2 MB, free: 9.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001381/0.3014, allocations: 0.7107 MB / 463.9 MB, free: 8.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.3015, allocations: 59.34 kB / 464 MB, free: 8.25 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/0.3018, allocations: 275.7 kB / 464.2 MB, free: 7.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.3018, allocations: 29.7 kB / 464.3 MB, free: 7.945 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.3019, allocations: 200.2 kB / 464.5 MB, free: 7.746 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.674e-05/0.302, allocations: 86.83 kB / 464.5 MB, free: 7.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.165e-05/0.302, allocations: 4 kB / 464.5 MB, free: 7.656 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3021, allocations: 334.8 kB / 464.9 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001809/0.3023, allocations: 88.45 kB / 465 MB, free: 7.234 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002023/0.3025, allocations: 132.2 kB / 465.1 MB, free: 7.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.3027, allocations: 99.84 kB / 465.2 MB, free: 6.992 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3027, allocations: 0 / 465.2 MB, free: 6.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007042/0.3035, allocations: 371.5 kB / 465.5 MB, free: 6.613 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3035, allocations: 6.188 kB / 465.5 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.3035, allocations: 4 kB / 465.6 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003872/0.3039, allocations: 114.5 kB / 465.7 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.3041, allocations: 39.91 kB / 465.7 MB, free: 6.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003452/0.3075, allocations: 4.469 MB / 470.2 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.3078, allocations: 39.66 kB / 470.2 MB, free: 1.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.3078, allocations: 11.94 kB / 470.2 MB, free: 1.516 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001908/0.308, allocations: 141.8 kB / 470.4 MB, free: 1.367 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.3081, allocations: 35.61 kB / 470.4 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.417e-05/0.3081, allocations: 43.23 kB / 470.4 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3082, allocations: 384 / 470.4 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.3082, allocations: 0 / 470.4 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3082, allocations: 4 kB / 470.4 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003718/0.3086, allocations: 373.3 kB / 470.8 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3086, allocations: 4.125 kB / 470.8 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.3087, allocations: 31.91 kB / 470.8 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002969/0.309, allocations: 114.8 kB / 471 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.309, allocations: 8 kB / 471 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003488/0.3125, allocations: 4.473 MB / 475.4 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3126, allocations: 8.062 kB / 475.4 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006096/0.3132, allocations: 417.5 kB / 475.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.3133, allocations: 132.6 kB / 476 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.001e-05/0.3134, allocations: 0 / 476 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.3136, allocations: 23.98 kB / 476 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.838e-05/0.3137, allocations: 23.97 kB / 476 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.3137, allocations: 8.188 kB / 476 MB, free: 11.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002099/0.3139, allocations: 219.1 kB / 476.2 MB, free: 10.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3139, allocations: 0 / 476.2 MB, free: 10.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006291/0.3146, allocations: 111.8 kB / 476.4 MB, free: 10.86 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009027/0.3155, allocations: 0.9525 MB / 477.3 MB, free: 9.875 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008649/0.3163, allocations: 0.574 MB / 477.9 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3164, allocations: 0 / 477.9 MB, free: 9.262 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005276/0.3169, allocations: 484 kB / 478.4 MB, free: 8.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.3172, allocations: 55.58 kB / 478.4 MB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.3201, allocations: 2.535 MB / 480.9 MB, free: 6.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003872/0.3205, allocations: 0.799 MB / 481.7 MB, free: 5.262 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001185/0.3206, allocations: 27.02 kB / 481.8 MB, free: 5.234 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.3208, allocations: 111.4 kB / 481.9 MB, free: 5.125 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.3208, allocations: 0 / 481.9 MB, free: 5.125 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01971/0.3405, allocations: 7.594 MB / 489.5 MB, free: 13.55 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002302/0.3408, allocations: 218.1 kB / 489.7 MB, free: 13.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.89/2.23, allocations: 0 / 489.7 MB, free: 13.31 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat