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.0009486/0.0009486, allocations: 172.3 kB / 14.1 MB, free: 1.223 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.362/1.362, allocations: 205.2 MB / 219.8 MB, free: 14.19 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.0009648/0.0009648, allocations: 90.7 kB / 268 MB, free: 14.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.506e-05/2.508e-05, allocations: 4 kB / 322.5 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07507/0.07512, allocations: 47.57 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2603/0.3355, allocations: 77.3 MB / 447.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001547/0.3357, allocations: 65.59 kB / 447.5 MB, free: 15.92 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01546/0.3511, allocations: 6.335 MB / 453.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3512, allocations: 0 / 453.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.607e-05/0.3512, allocations: 12 kB / 453.8 MB, free: 10.5 MB / 330.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.0008058/0.352, allocations: 0.6154 MB / 454.4 MB, free: 9.863 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.352, allocations: 8.031 kB / 454.4 MB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.791e-05/0.3521, allocations: 69.72 kB / 454.5 MB, free: 9.801 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.779e-05/0.3522, allocations: 47.44 kB / 454.6 MB, free: 9.754 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.3525, allocations: 297.7 kB / 454.9 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.3525, allocations: 22.97 kB / 454.9 MB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.166e-05/0.3526, allocations: 29.75 kB / 454.9 MB, free: 9.418 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005134/0.3531, allocations: 339.3 kB / 455.2 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.3531, allocations: 8 kB / 455.2 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.3532, allocations: 10.06 kB / 455.3 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.3532, allocations: 8 kB / 455.3 MB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003974/0.3536, allocations: 240 kB / 455.5 MB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.3554, allocations: 1.44 MB / 456.9 MB, free: 7.68 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003205/0.3558, allocations: 196.6 kB / 457.1 MB, free: 7.523 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.3559, allocations: 100.8 kB / 457.2 MB, free: 7.422 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.356, allocations: 4 kB / 457.2 MB, free: 7.418 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.356, allocations: 34.56 kB / 457.3 MB, free: 7.375 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.356, allocations: 3.938 kB / 457.3 MB, free: 7.371 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005013/0.3565, allocations: 264.1 kB / 457.5 MB, free: 7.098 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.3566, allocations: 55.41 kB / 457.6 MB, free: 7.031 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.3569, allocations: 270.7 kB / 457.8 MB, free: 6.758 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.3569, allocations: 29.7 kB / 457.9 MB, free: 6.723 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.3571, allocations: 212.2 kB / 458.1 MB, free: 6.512 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.202e-05/0.3571, allocations: 82.84 kB / 458.2 MB, free: 6.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.082e-05/0.3571, allocations: 0 / 458.2 MB, free: 6.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3573, allocations: 342.8 kB / 458.5 MB, free: 6.086 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.3574, allocations: 72.42 kB / 458.6 MB, free: 6.016 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.3576, allocations: 104.3 kB / 458.7 MB, free: 5.898 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.3577, allocations: 71.97 kB / 458.7 MB, free: 5.828 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3577, allocations: 0 / 458.7 MB, free: 5.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005915/0.3583, allocations: 335.4 kB / 459.1 MB, free: 5.484 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.3584, allocations: 4 kB / 459.1 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3584, allocations: 0 / 459.1 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003673/0.3587, allocations: 122.5 kB / 459.2 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.3589, allocations: 31.97 kB / 459.2 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00332/0.3623, allocations: 4.438 MB / 463.7 MB, free: 488 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.3625, allocations: 31.77 kB / 463.7 MB, free: 456 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.3625, allocations: 16 kB / 463.7 MB, free: 440 kB / 330.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 () * 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 9.344e-05/0.3626, allocations: 120.9 kB / 463.8 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.537e-05/0.3627, allocations: 31.62 kB / 463.9 MB, free: 280 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.922e-05/0.3627, allocations: 34.95 kB / 463.9 MB, free: 240 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3628, allocations: 4.062 kB / 463.9 MB, free: 236 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.3628, allocations: 4 kB / 463.9 MB, free: 232 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.3628, allocations: 7.938 kB / 463.9 MB, free: 224 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004116/0.3632, allocations: 373.3 kB / 464.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3632, allocations: 0 / 464.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.3633, allocations: 23.98 kB / 464.3 MB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002933/0.3636, allocations: 118.6 kB / 464.4 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.3637, allocations: 4 kB / 464.4 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003115/0.3668, allocations: 4.43 MB / 468.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3668, allocations: 4 kB / 468.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004578/0.3673, allocations: 377.6 kB / 469.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.3674, allocations: 124.7 kB / 469.3 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/0.3674, allocations: 8 kB / 469.3 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.3677, allocations: 27.98 kB / 469.4 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.122e-05/0.3677, allocations: 23.95 kB / 469.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.3678, allocations: 4 kB / 469.4 MB, free: 10.22 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001984/0.368, allocations: 218.2 kB / 469.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.368, allocations: 0 / 469.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005674/0.3686, allocations: 116 kB / 469.7 MB, free: 9.895 MB / 346.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 () * 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.0006937/0.3693, allocations: 0.9135 MB / 470.6 MB, free: 8.945 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000668/0.3699, allocations: 0.5348 MB / 471.2 MB, free: 8.371 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3699, allocations: 3.938 kB / 471.2 MB, free: 8.367 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004052/0.3704, allocations: 455.7 kB / 471.6 MB, free: 7.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.3707, allocations: 54.34 kB / 471.7 MB, free: 7.832 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009621/0.3716, allocations: 478.1 kB / 472.1 MB, free: 7.328 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.372, allocations: 0.8067 MB / 472.9 MB, free: 6.492 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.3721, allocations: 26.97 kB / 473 MB, free: 6.465 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.3723, allocations: 107.4 kB / 473.1 MB, free: 6.359 MB / 346.7 MB Notification: Performance of SimCode: time 5.51e-07/0.3723, allocations: 0 / 473.1 MB, free: 6.359 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02172/0.394, allocations: 7.574 MB / 480.7 MB, free: 14.78 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/0.3942, allocations: 200.5 kB / 480.8 MB, free: 14.55 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.009/2.403, allocations: 7.938 kB / 480.9 MB, free: 14.54 MB / 362.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