Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008105/0.0008105, allocations: 88.16 kB / 16.31 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009133/0.0009133, allocations: 181.5 kB / 17.21 MB, free: 5.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 223.3 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002714, allocations: 8 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1152, allocations: 50.41 MB / 351.3 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004246/0.1195, allocations: 3.661 MB / 355 MB, free: 244 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001968/0.1215, allocations: 0.8922 MB / 355.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003598/0.1219, allocations: 11.94 kB / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002423/0.1221, allocations: 71.38 kB / 356 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005313/0.1227, allocations: 170.7 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003542/0.123, allocations: 111.9 kB / 356.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006911/0.1237, allocations: 0.6815 MB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003201/0.1241, allocations: 158.6 kB / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003287/0.1244, allocations: 239.1 kB / 357.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003621/0.1248, allocations: 298.7 kB / 357.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.197e-05/0.1249, allocations: 36 kB / 357.6 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.617e-05/0.1249, allocations: 32 kB / 357.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.1251, allocations: 107.5 kB / 357.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.1252, allocations: 137.4 kB / 357.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004289/0.1256, allocations: 0.5063 MB / 358.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1256, allocations: 0 / 358.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1256, allocations: 0 / 358.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.1257, allocations: 0 / 358.4 MB, free: 12.79 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.001202/0.1269, allocations: 0.8222 MB / 359.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.1269, allocations: 12.03 kB / 359.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.1271, allocations: 111.6 kB / 359.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.234e-05/0.1272, allocations: 75.11 kB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004887/0.1276, allocations: 368.9 kB / 359.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.912e-05/0.1277, allocations: 49.23 kB / 359.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.584e-05/0.1278, allocations: 52 kB / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009469/0.1287, allocations: 0.5694 MB / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.1288, allocations: 7.922 kB / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.827e-05/0.1288, allocations: 24 kB / 360.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.1288, allocations: 15.95 kB / 360.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008754/0.1297, allocations: 469 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002937/0.1327, allocations: 2.11 MB / 363.1 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009732/0.1337, allocations: 0.6531 MB / 363.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000609/0.1343, allocations: 419 kB / 364.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.1343, allocations: 4.562 kB / 364.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.1344, allocations: 39.12 kB / 364.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 2.144e-06/0.1344, allocations: 0 / 364.2 MB, free: 6.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.004514/0.1389, allocations: 2.063 MB / 366.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.166e-05/0.139, allocations: 55.97 kB / 366.3 MB, free: 4.512 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004305/0.1394, allocations: 357.7 kB / 366.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.945e-05/0.1395, allocations: 37.7 kB / 366.7 MB, free: 4.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001876/0.1397, allocations: 244.9 kB / 366.9 MB, free: 3.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.1398, allocations: 197 kB / 367.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.487e-05/0.1399, allocations: 15.94 kB / 367.1 MB, free: 3.656 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.1401, allocations: 362.7 kB / 367.5 MB, free: 3.293 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003374/0.1404, allocations: 173 kB / 367.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003862/0.1408, allocations: 219.7 kB / 367.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.1412, allocations: 182.2 kB / 368.1 MB, free: 2.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1412, allocations: 0 / 368.1 MB, free: 2.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001312/0.1425, allocations: 0.6734 MB / 368.7 MB, free: 2.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.1425, allocations: 8.031 kB / 368.7 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.1426, allocations: 0 / 368.7 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007357/0.1433, allocations: 251.2 kB / 369 MB, free: 1.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003188/0.1436, allocations: 63.91 kB / 369 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2555/0.3991, allocations: 6.768 MB / 375.8 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.3995, allocations: 21.14 kB / 375.8 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.3995, allocations: 16.98 kB / 375.8 MB, free: 19.8 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.0002707/0.3998, allocations: 175.6 kB / 376 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.3999, allocations: 51.67 kB / 376.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001548/0.4001, allocations: 64.77 kB / 376.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.4001, allocations: 9.984 kB / 376.1 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.4001, allocations: 2.125 kB / 376.1 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.4001, allocations: 3.047 kB / 376.1 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/0.4026, allocations: 1.359 MB / 377.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.4027, allocations: 1.094 kB / 377.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003237/0.403, allocations: 55.38 kB / 377.6 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008038/0.4038, allocations: 260.5 kB / 377.8 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/0.4039, allocations: 12 kB / 377.8 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00581/0.4097, allocations: 6.793 MB / 384.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.4097, allocations: 0 / 384.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.4117, allocations: 1.045 MB / 385.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000259/0.4119, allocations: 159.7 kB / 385.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.6e-05/0.412, allocations: 19.33 kB / 385.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.4123, allocations: 16.97 kB / 385.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.4125, allocations: 49.72 kB / 385.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.441e-05/0.4125, allocations: 20.02 kB / 385.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003991/0.413, allocations: 258.4 kB / 386.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.72e-07/0.413, allocations: 0 / 386.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001219/0.4142, allocations: 174.7 kB / 386.3 MB, free: 12.15 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.002018/0.4162, allocations: 1.606 MB / 388 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.4179, allocations: 1.047 MB / 389 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4179, allocations: 0 / 389 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.419, allocations: 0.8366 MB / 389.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006454/0.4197, allocations: 92.34 kB / 389.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005996/0.4257, allocations: 3.421 MB / 393.3 MB, free: 7.926 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.4262, allocations: 0.8886 MB / 394.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002379/0.4264, allocations: 54.64 kB / 394.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.4266, allocations: 174 kB / 394.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4266, allocations: 0 / 394.5 MB, free: 7.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03931/0.4659, allocations: 12.18 MB / 406.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003232/0.4664, allocations: 211 kB / 406.8 MB, free: 15.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.246/2.712, allocations: 0 / 406.8 MB, free: 15.43 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat