Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.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.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse",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.001526/0.001526, allocations: 186.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.069/2.069, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001203/0.001203, allocations: 99.38 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003876/0.0003878, allocations: 12 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3317, allocations: 47.56 MB / 374.6 MB, free: 45.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1386/0.4704, allocations: 84.63 MB / 459.3 MB, free: 12.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003479/0.4708, allocations: 91.95 kB / 459.4 MB, free: 11.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08664/0.5574, allocations: 20.41 MB / 479.8 MB, free: 7.344 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.5575, allocations: 4 kB / 479.8 MB, free: 7.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001118/0.5576, allocations: 35.88 kB / 479.8 MB, free: 7.305 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004515/0.5621, allocations: 1.431 MB / 481.2 MB, free: 5.816 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/0.5622, allocations: 8.031 kB / 481.2 MB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000479/0.5627, allocations: 160.2 kB / 481.4 MB, free: 5.645 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004063/0.5631, allocations: 138.3 kB / 481.5 MB, free: 5.508 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006842/0.57, allocations: 1.678 MB / 483.2 MB, free: 3.785 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001081/0.5701, allocations: 74 kB / 483.3 MB, free: 3.715 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003664/0.5705, allocations: 96 kB / 483.4 MB, free: 3.621 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004148/0.5747, allocations: 1.428 MB / 484.8 MB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.11e-05/0.5748, allocations: 0 / 484.8 MB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001789/0.575, allocations: 44 kB / 484.9 MB, free: 2.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.293e-05/0.5751, allocations: 41.98 kB / 484.9 MB, free: 2.051 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003978/0.5791, allocations: 1.234 MB / 486.1 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01173/0.5908, allocations: 4.344 MB / 490.5 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00328/0.5942, allocations: 1.97 MB / 492.4 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/0.5943, allocations: 12.66 kB / 492.5 MB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001662/0.596, allocations: 0.6012 MB / 493.1 MB, free: 9.555 MB / 378.7 MB Notification: Performance of pre-optimization done (n=75): time 4.108e-06/0.5961, allocations: 0 / 493.1 MB, free: 9.555 MB / 378.7 MB Notification: Performance of matching and sorting (n=75): time 0.01269/0.6088, allocations: 2.727 MB / 495.8 MB, free: 6.797 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.073e-05/0.6089, allocations: 115.4 kB / 495.9 MB, free: 6.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001726/0.6106, allocations: 0.7379 MB / 496.6 MB, free: 5.918 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001963/0.6109, allocations: 41.7 kB / 496.7 MB, free: 5.871 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000523/0.6114, allocations: 494.2 kB / 497.2 MB, free: 5.383 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003655/0.6118, allocations: 240.5 kB / 497.4 MB, free: 5.145 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.627e-05/0.6119, allocations: 16 kB / 497.4 MB, free: 5.129 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.612, allocations: 342.8 kB / 497.7 MB, free: 4.785 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.6132, allocations: 397.7 kB / 498.1 MB, free: 4.398 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.6145, allocations: 0.5407 MB / 498.7 MB, free: 3.805 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.6158, allocations: 450.2 kB / 499.1 MB, free: 3.363 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.6158, allocations: 0 / 499.1 MB, free: 3.363 MB / 378.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003417/0.6192, allocations: 1.245 MB / 0.4886 GB, free: 2.109 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.6193, allocations: 11.98 kB / 0.4886 GB, free: 2.098 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.6193, allocations: 4 kB / 0.4886 GB, free: 2.094 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00195/0.6213, allocations: 464.2 kB / 0.4891 GB, free: 1.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007683/0.6221, allocations: 95.83 kB / 0.4892 GB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2772/0.8993, allocations: 5.285 MB / 0.4943 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.9004, allocations: 83.38 kB / 0.4944 GB, free: 100.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.553e-05/0.9005, allocations: 30.33 kB / 0.4944 GB, free: 100.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 30} Notification: Performance of prepare postOptimizeDAE: time 0.001024/0.9015, allocations: 467.5 kB / 0.4949 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002662/0.9018, allocations: 84.66 kB / 0.495 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000315/0.9021, allocations: 109.1 kB / 0.4951 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.9021, allocations: 12 kB / 0.4951 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.9021, allocations: 0 / 0.4951 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.9022, allocations: 6.891 kB / 0.4951 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006831/0.909, allocations: 2.629 MB / 0.4977 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.9091, allocations: 6.938 kB / 0.4977 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005715/0.9096, allocations: 64.34 kB / 0.4977 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001706/0.9114, allocations: 465.5 kB / 0.4982 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.9115, allocations: 15.78 kB / 0.4982 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01052/0.922, allocations: 5.272 MB / 0.5033 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.9221, allocations: 0 / 0.5033 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004239/0.9263, allocations: 1.936 MB / 0.5052 GB, free: 96.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006722/0.9271, allocations: 270.7 kB / 0.5055 GB, free: 96.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/0.9273, allocations: 15.5 kB / 0.5055 GB, free: 96.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007267/0.928, allocations: 49.03 kB / 0.5055 GB, free: 96.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002832/0.9283, allocations: 69.41 kB / 0.5056 GB, free: 96.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.521e-05/0.9284, allocations: 22.62 kB / 0.5056 GB, free: 96.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001051/0.9295, allocations: 0.5815 MB / 0.5062 GB, free: 96.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9295, allocations: 3.844 kB / 0.5062 GB, free: 96.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001325/0.9308, allocations: 346.5 kB / 0.5065 GB, free: 96.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y) * Number of discrete states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.004442/0.9353, allocations: 2.504 MB / 0.509 GB, free: 94.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003169/0.9385, allocations: 1.275 MB / 0.5102 GB, free: 94.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.9385, allocations: 0 / 0.5102 GB, free: 94.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.9405, allocations: 0.8233 MB / 0.511 GB, free: 94.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.9423, allocations: 251.5 kB / 0.5113 GB, free: 93.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007521/0.9498, allocations: 5.614 MB / 0.5168 GB, free: 89.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/0.9509, allocations: 1.315 MB / 0.518 GB, free: 89.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007345/0.9517, allocations: 381.1 kB / 0.5184 GB, free: 88.76 MB / 378.7 MB Notification: Performance of SimCode: time 1.372e-06/0.9517, allocations: 0 / 0.5184 GB, free: 88.76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.967/3.919, allocations: 25.31 MB / 0.5431 GB, free: 68.68 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_DiodeBridge2mPulse.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse_res.mat does not exist to compare? outputFormat=mat