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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001484/0.001484, allocations: 196.8 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001023/0.001023, allocations: 96.73 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.629e-05/2.624e-05, allocations: 4 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 51.47 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3526/0.4627, allocations: 80.62 MB / 475.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.463, allocations: 71.2 kB / 475.9 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02121/0.4842, allocations: 9.086 MB / 485 MB, free: 5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4842, allocations: 0 / 485 MB, free: 5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.4842, allocations: 12 kB / 485 MB, free: 4.988 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.0009569/0.4852, allocations: 0.7566 MB / 485.8 MB, free: 4.227 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.4853, allocations: 12.03 kB / 485.8 MB, free: 4.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003179/0.4856, allocations: 104 kB / 485.9 MB, free: 4.113 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/0.486, allocations: 365.9 kB / 486.3 MB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.486, allocations: 16 kB / 486.3 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.066e-05/0.4861, allocations: 32 kB / 486.3 MB, free: 3.711 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005372/0.4866, allocations: 379.5 kB / 486.7 MB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005892/0.4872, allocations: 449.3 kB / 487.1 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.4872, allocations: 3.938 kB / 487.1 MB, free: 3.121 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.4873, allocations: 0 / 487.1 MB, free: 3.121 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.4873, allocations: 12 kB / 487.1 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002123/0.4894, allocations: 1.974 MB / 489.1 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006536/0.4901, allocations: 0.579 MB / 489.7 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.4905, allocations: 354.8 kB / 490 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.993e-05/0.4905, allocations: 4.562 kB / 490 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.4906, allocations: 39.06 kB / 490.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of pre-optimization done (n=60): time 3.316e-06/0.4906, allocations: 1.875 kB / 490.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.001781/0.4924, allocations: 1.142 MB / 491.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.545e-05/0.4924, allocations: 59.97 kB / 491.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/0.4927, allocations: 271.8 kB / 491.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.212e-05/0.4928, allocations: 25.7 kB / 491.6 MB, free: 15.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.4929, allocations: 229.9 kB / 491.8 MB, free: 15.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.4931, allocations: 194 kB / 492 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-05/0.4931, allocations: 4 kB / 492 MB, free: 15.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.4932, allocations: 356.1 kB / 492.3 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.4934, allocations: 138 kB / 492.5 MB, free: 14.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.4937, allocations: 185.6 kB / 492.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002166/0.4939, allocations: 144.1 kB / 492.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4939, allocations: 0 / 492.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008984/0.4948, allocations: 0.5746 MB / 493.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.4948, allocations: 8 kB / 493.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/0.4949, allocations: 0 / 493.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006476/0.4955, allocations: 249.6 kB / 493.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.4958, allocations: 67.27 kB / 493.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005814/0.5017, allocations: 6.524 MB / 0.4885 GB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00041/0.5021, allocations: 12.02 kB / 0.4885 GB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.037e-05/0.5022, allocations: 15.69 kB / 0.4885 GB, free: 7.492 MB / 362.7 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 () * 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.0001597/0.5023, allocations: 106.2 kB / 0.4886 GB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008236/0.5032, allocations: 0.5381 MB / 0.4891 GB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.172e-05/0.5032, allocations: 49.12 kB / 0.4892 GB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.5034, allocations: 55.5 kB / 0.4892 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.5034, allocations: 8 kB / 0.4893 GB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.5034, allocations: 11.94 kB / 0.4893 GB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.5034, allocations: 0 / 0.4893 GB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.505, allocations: 1.173 MB / 0.4904 GB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.5051, allocations: 0 / 0.4904 GB, free: 5.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003024/0.5054, allocations: 62.77 kB / 0.4905 GB, free: 5.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006574/0.506, allocations: 247.3 kB / 0.4907 GB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.5061, allocations: 3.25 kB / 0.4907 GB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005318/0.5114, allocations: 6.537 MB / 0.4971 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5114, allocations: 0 / 0.4971 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.5128, allocations: 0.9042 MB / 0.498 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.513, allocations: 156.5 kB / 0.4981 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.5131, allocations: 4 kB / 0.4981 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.5133, allocations: 11.98 kB / 0.4981 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.5134, allocations: 56.48 kB / 0.4982 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.059e-05/0.5135, allocations: 12 kB / 0.4982 GB, free: 14.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002159/0.5137, allocations: 208.6 kB / 0.4984 GB, free: 13.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5137, allocations: 5.969 kB / 0.4984 GB, free: 13.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000853/0.5146, allocations: 152 kB / 0.4986 GB, free: 13.72 MB / 378.7 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 () * 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.001612/0.5162, allocations: 1.476 MB / 0.5 GB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.5174, allocations: 0.9296 MB / 0.5009 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5175, allocations: 112 / 0.5009 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009039/0.5184, allocations: 0.7661 MB / 0.5017 GB, free: 10.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003383/0.5187, allocations: 55.09 kB / 0.5017 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001988/0.5207, allocations: 1.05 MB / 0.5027 GB, free: 9.301 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.5212, allocations: 0.8867 MB / 0.5036 GB, free: 8.387 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001544/0.5213, allocations: 48.36 kB / 0.5036 GB, free: 8.336 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.5215, allocations: 171.4 kB / 0.5038 GB, free: 8.168 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5215, allocations: 0 / 0.5038 GB, free: 8.168 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02879/0.5503, allocations: 10.75 MB / 0.5143 GB, free: 13.53 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001606/0.5506, allocations: 137 kB / 0.5144 GB, free: 13.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.319/2.869, allocations: 0 / 0.5144 GB, free: 13.34 MB / 394.7 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