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.002291/0.002298, allocations: 188.3 kB / 16.4 MB, free: 5.625 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.188/2.188, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001111/0.001111, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003852, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09947/0.09988, allocations: 47.59 MB / 374.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.DiodeBridge2mPulse): time 0.00687/0.1068, allocations: 3.813 MB / 378.5 MB, free: 11.48 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003768/0.1106, allocations: 1.326 MB / 379.8 MB, free: 10.15 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006575/0.1113, allocations: 23.81 kB / 379.8 MB, free: 10.13 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008187/0.1122, allocations: 175 kB / 380 MB, free: 9.957 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5153:20-5153:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5164:20-5164:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFTyping.typeBindings: time 0.001462/0.1137, allocations: 303.1 kB / 380.3 MB, free: 9.66 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006592/0.1144, allocations: 127.8 kB / 380.4 MB, free: 9.535 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5153:20-5153:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5164:20-5164:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFFlatten.flatten: time 0.002186/0.1166, allocations: 0.9278 MB / 381.3 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001513/0.1181, allocations: 0.6661 MB / 382 MB, free: 7.922 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5153:20-5153:43:writable] Warning: 'each' used when modifying non-array element diode_p. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Electrical/PowerConverters.mo:5164:20-5164:43:writable] Warning: 'each' used when modifying non-array element diode_n. Notification: Performance of NFEvalConstants.evaluate: time 0.001175/0.1194, allocations: 450.3 kB / 382.4 MB, free: 7.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.1207, allocations: 0.5213 MB / 383 MB, free: 6.957 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002982/0.121, allocations: 64 kB / 383 MB, free: 6.895 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003483/0.1214, allocations: 68 kB / 383.1 MB, free: 6.828 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004511/0.1218, allocations: 303 kB / 383.4 MB, free: 6.531 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004956/0.1224, allocations: 273.1 kB / 383.7 MB, free: 6.258 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002564/0.1249, allocations: 1.64 MB / 385.3 MB, free: 4.613 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.125, allocations: 4 kB / 385.3 MB, free: 4.609 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.437e-06/0.125, allocations: 0 / 385.3 MB, free: 4.609 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.025e-05/0.1251, allocations: 0 / 385.3 MB, free: 4.609 MB / 282.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.004755/0.1299, allocations: 1.412 MB / 386.7 MB, free: 3.141 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.1299, allocations: 8.031 kB / 386.7 MB, free: 3.133 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005623/0.1305, allocations: 152.2 kB / 386.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004344/0.131, allocations: 146.3 kB / 387 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002388/0.1334, allocations: 0.8326 MB / 387.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.1335, allocations: 77.95 kB / 387.9 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/0.1339, allocations: 99.91 kB / 388 MB, free: 1.785 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004346/0.1382, allocations: 1.419 MB / 389.4 MB, free: 340 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-05/0.1383, allocations: 3.938 kB / 389.4 MB, free: 336 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001722/0.1385, allocations: 43.98 kB / 389.5 MB, free: 292 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.342e-05/0.1386, allocations: 42 kB / 389.5 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2871/0.4257, allocations: 1.283 MB / 390.8 MB, free: 19.95 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0112/0.437, allocations: 4.349 MB / 395.2 MB, free: 17.84 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003128/0.4402, allocations: 1.976 MB / 397.1 MB, free: 16.25 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.058e-05/0.4403, allocations: 8.125 kB / 397.1 MB, free: 16.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002335/0.4427, allocations: 0.6061 MB / 397.8 MB, free: 15.99 MB / 282.7 MB Notification: Performance of pre-optimization done (n=75): time 7.624e-06/0.4427, allocations: 0 / 397.8 MB, free: 15.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=75): time 0.02057/0.4633, allocations: 2.825 MB / 400.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/0.4635, allocations: 120.5 kB / 400.7 MB, free: 15.08 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001697/0.4652, allocations: 0.8155 MB / 401.5 MB, free: 14.75 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001884/0.4654, allocations: 41.77 kB / 401.6 MB, free: 14.71 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003997/0.4658, allocations: 0.4951 MB / 402 MB, free: 14.26 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/0.4661, allocations: 240.3 kB / 402.3 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.077e-05/0.4662, allocations: 13.75 kB / 402.3 MB, free: 14.05 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.568e-05/0.4662, allocations: 339.8 kB / 402.6 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/0.4673, allocations: 401 kB / 403 MB, free: 13.51 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.4685, allocations: 0.5445 MB / 403.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.4697, allocations: 440.3 kB / 404 MB, free: 12.89 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.148e-06/0.4698, allocations: 9.359 kB / 404 MB, free: 12.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003454/0.4733, allocations: 1.237 MB / 405.2 MB, free: 12.21 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.4733, allocations: 7.125 kB / 405.2 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.4734, allocations: 3.656 kB / 405.2 MB, free: 12.21 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001977/0.4754, allocations: 475.3 kB / 405.7 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000758/0.4762, allocations: 92.45 kB / 405.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01115/0.4873, allocations: 5.307 MB / 411.1 MB, free: 8.176 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.4884, allocations: 93.61 kB / 411.2 MB, free: 8.117 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.057e-05/0.4885, allocations: 27.25 kB / 411.2 MB, free: 8.109 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (55): * Single equations (assignments): 54 * 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.001043/0.4896, allocations: 452.4 kB / 411.7 MB, free: 7.793 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002496/0.4898, allocations: 90.05 kB / 411.8 MB, free: 7.746 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/0.4901, allocations: 114.6 kB / 411.9 MB, free: 7.656 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.4901, allocations: 8.219 kB / 411.9 MB, free: 7.656 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/0.4902, allocations: 0 / 411.9 MB, free: 7.656 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.4902, allocations: 3.984 kB / 411.9 MB, free: 7.652 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00646/0.4967, allocations: 2.635 MB / 414.5 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.4967, allocations: 7.891 kB / 414.5 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006062/0.4973, allocations: 63.17 kB / 414.6 MB, free: 5.992 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001634/0.499, allocations: 460.7 kB / 415 MB, free: 5.754 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.594e-05/0.4991, allocations: 15.41 kB / 415.1 MB, free: 5.742 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009879/0.509, allocations: 5.271 MB / 420.3 MB, free: 488 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.5091, allocations: 7.891 kB / 420.3 MB, free: 480 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004924/0.514, allocations: 1.923 MB / 422.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007995/0.5149, allocations: 275.8 kB / 422.5 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.5151, allocations: 19.95 kB / 422.5 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007719/0.5158, allocations: 43.95 kB / 422.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003367/0.5162, allocations: 76.48 kB / 422.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.539e-05/0.5163, allocations: 19.98 kB / 422.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001289/0.5176, allocations: 0.5888 MB / 423.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5176, allocations: 0 / 423.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001681/0.5193, allocations: 339.1 kB / 423.6 MB, free: 13.17 MB / 298.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.005625/0.525, allocations: 2.494 MB / 426.1 MB, free: 10.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003911/0.529, allocations: 1.285 MB / 427.4 MB, free: 9.352 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/0.5291, allocations: 4.875 kB / 427.4 MB, free: 9.348 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002182/0.5312, allocations: 0.8209 MB / 428.2 MB, free: 8.508 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/0.533, allocations: 245.2 kB / 428.4 MB, free: 8.273 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009227/0.5423, allocations: 5.804 MB / 434.2 MB, free: 2.348 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.5437, allocations: 1.315 MB / 435.6 MB, free: 1.008 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008511/0.5446, allocations: 379.3 kB / 435.9 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5446, allocations: 0 / 435.9 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.05/3.595, allocations: 25.34 MB / 461.3 MB, free: 7.27 MB / 330.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