Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.001039, allocations: 97.25 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 204.5 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002381/0.0002381, allocations: 12 kB / 306.7 MB, free: 1.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1138, allocations: 51.49 MB / 358.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004079/0.1179, allocations: 3.441 MB / 361.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.1198, allocations: 0.9743 MB / 362.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.1201, allocations: 8 kB / 362.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.1202, allocations: 71.44 kB / 362.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005117/0.1208, allocations: 231.2 kB / 362.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.1211, allocations: 115.9 kB / 363 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005727/0.1217, allocations: 492 kB / 363.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003283/0.122, allocations: 170.5 kB / 363.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003265/0.1223, allocations: 251 kB / 363.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003192/0.1227, allocations: 274.8 kB / 364.2 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.866e-05/0.1227, allocations: 36 kB / 364.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.1228, allocations: 36 kB / 364.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.123, allocations: 111.6 kB / 364.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.1231, allocations: 133.4 kB / 364.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004908/0.1236, allocations: 0.5062 MB / 365 MB, free: 7.129 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1236, allocations: 0 / 365 MB, free: 7.129 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1236, allocations: 0 / 365 MB, free: 7.129 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.026e-05/0.1236, allocations: 0 / 365 MB, free: 7.129 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.0014/0.125, allocations: 0.8261 MB / 365.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/0.1251, allocations: 8.031 kB / 365.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001873/0.1253, allocations: 115.6 kB / 366 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004056/0.1257, allocations: 107.1 kB / 366.1 MB, free: 6.016 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005597/0.1263, allocations: 368.9 kB / 366.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.965e-05/0.1263, allocations: 41.31 kB / 366.5 MB, free: 5.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.841e-05/0.1264, allocations: 55.95 kB / 366.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00097/0.1274, allocations: 0.5654 MB / 367.1 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.1274, allocations: 4 kB / 367.1 MB, free: 4.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.155e-05/0.1275, allocations: 24 kB / 367.1 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.1275, allocations: 12 kB / 367.1 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000848/0.1284, allocations: 480.9 kB / 367.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.1312, allocations: 2.106 MB / 369.7 MB, free: 2.219 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009035/0.1321, allocations: 0.6502 MB / 370.3 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.946e-05/0.1321, allocations: 12.55 kB / 370.4 MB, free: 1.527 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.1322, allocations: 35.12 kB / 370.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 2.094e-06/0.1322, allocations: 0 / 370.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.2206/0.3528, allocations: 2.054 MB / 372.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.3528, allocations: 59.03 kB / 372.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004908/0.3533, allocations: 357.7 kB / 372.9 MB, free: 19.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.3534, allocations: 34.27 kB / 372.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000153/0.3536, allocations: 245.2 kB / 373.1 MB, free: 18.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.3537, allocations: 204.5 kB / 373.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.302e-05/0.3537, allocations: 12.28 kB / 373.3 MB, free: 18.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.789e-05/0.3538, allocations: 358.2 kB / 373.7 MB, free: 18.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003576/0.3542, allocations: 170 kB / 373.9 MB, free: 18.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.3546, allocations: 215.7 kB / 374.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.3551, allocations: 184.2 kB / 374.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3551, allocations: 0 / 374.2 MB, free: 18.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001568/0.3566, allocations: 0.6719 MB / 374.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.3567, allocations: 4.906 kB / 374.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.3567, allocations: 3.641 kB / 374.9 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008652/0.3576, allocations: 257.7 kB / 375.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003138/0.3579, allocations: 62.08 kB / 375.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005694/0.3636, allocations: 6.83 MB / 382.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003976/0.364, allocations: 21.2 kB / 382.1 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.3641, allocations: 19.44 kB / 382.1 MB, free: 12.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003057/0.3644, allocations: 173.1 kB / 382.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.3645, allocations: 56.73 kB / 382.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.3646, allocations: 75.83 kB / 382.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.3646, allocations: 13.72 kB / 382.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.08e-05/0.3647, allocations: 2.531 kB / 382.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.3647, allocations: 3.422 kB / 382.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.3668, allocations: 1.365 MB / 383.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.3669, allocations: 0 / 383.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/0.3672, allocations: 58.36 kB / 383.8 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006882/0.3679, allocations: 255.9 kB / 384.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.3679, allocations: 12.34 kB / 384.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005478/0.3734, allocations: 6.834 MB / 390.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3734, allocations: 4.062 kB / 390.9 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.3754, allocations: 1.033 MB / 392 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.3757, allocations: 157.7 kB / 392.1 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.231e-05/0.3758, allocations: 18.33 kB / 392.2 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.376, allocations: 24.58 kB / 392.2 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001883/0.3762, allocations: 59.47 kB / 392.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.472e-05/0.3763, allocations: 15.16 kB / 392.2 MB, free: 4.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003299/0.3766, allocations: 253.7 kB / 392.5 MB, free: 4.207 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3766, allocations: 0 / 392.5 MB, free: 4.207 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001012/0.3776, allocations: 177.3 kB / 392.7 MB, free: 4.184 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001948/0.3796, allocations: 1.609 MB / 394.3 MB, free: 3.109 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.3814, allocations: 1.041 MB / 395.3 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3814, allocations: 0 / 395.3 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.3824, allocations: 0.842 MB / 396.2 MB, free: 1.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004287/0.3829, allocations: 81.03 kB / 396.2 MB, free: 1.789 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005581/0.3885, allocations: 3.586 MB / 399.8 MB, free: 15.92 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005678/0.3891, allocations: 0.8966 MB / 400.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002252/0.3893, allocations: 47.36 kB / 400.8 MB, free: 15.21 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.3895, allocations: 170.2 kB / 400.9 MB, free: 15.08 MB / 318.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3895, allocations: 0 / 400.9 MB, free: 15.08 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.416, allocations: 12.15 MB / 413.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001884/0.4162, allocations: 215.2 kB / 413.3 MB, free: 6.227 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.187/2.603, allocations: 0 / 413.3 MB, free: 6.227 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat