Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.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.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",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.002298/0.002303, 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.201/2.201, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001204/0.001204, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003935/0.0003937, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.105, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.009037/0.1141, allocations: 5.067 MB / 379.7 MB, free: 10.24 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005594/0.1198, allocations: 2.066 MB / 381.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00093/0.1208, allocations: 19.94 kB / 381.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009635/0.1218, allocations: 202.6 kB / 382 MB, free: 7.949 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002972/0.1248, allocations: 0.7165 MB / 382.7 MB, free: 7.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001688/0.1265, allocations: 375.1 kB / 383.1 MB, free: 6.863 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002158/0.1287, allocations: 0.7724 MB / 383.9 MB, free: 6.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002641/0.1314, allocations: 0.9296 MB / 384.8 MB, free: 5.109 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008551/0.1322, allocations: 374.5 kB / 385.1 MB, free: 4.742 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00096/0.1332, allocations: 450 kB / 385.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002237/0.1335, allocations: 48 kB / 385.6 MB, free: 4.254 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008341/0.1343, allocations: 179.8 kB / 385.8 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000235/0.1346, allocations: 175.2 kB / 386 MB, free: 3.906 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003549/0.1349, allocations: 213.1 kB / 386.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002035/0.137, allocations: 1.063 MB / 387.3 MB, free: 2.625 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1371, allocations: 4 kB / 387.3 MB, free: 2.621 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.742e-06/0.1371, allocations: 0 / 387.3 MB, free: 2.621 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.286e-05/0.1372, allocations: 4 kB / 387.3 MB, free: 2.617 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.004618/0.1418, allocations: 1.268 MB / 388.5 MB, free: 1.293 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.1419, allocations: 12.03 kB / 388.5 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004882/0.1424, allocations: 154.5 kB / 388.7 MB, free: 1.121 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004548/0.147, allocations: 482.2 kB / 389.2 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001615/0.1486, allocations: 0.553 MB / 389.7 MB, free: 56 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2891/0.4378, allocations: 74.94 kB / 389.8 MB, free: 19.94 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005061/0.4383, allocations: 103.3 kB / 389.9 MB, free: 19.94 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00366/0.442, allocations: 1.056 MB / 390.9 MB, free: 19.8 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.893e-05/0.4421, allocations: 2.469 kB / 390.9 MB, free: 19.8 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/0.4423, allocations: 47.66 kB / 391 MB, free: 19.8 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.163e-05/0.4424, allocations: 26.12 kB / 391 MB, free: 19.8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00322/0.4456, allocations: 0.9348 MB / 392 MB, free: 19.58 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.4561, allocations: 3.778 MB / 395.7 MB, free: 17.28 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00419/0.4603, allocations: 2.495 MB / 398.2 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002187/0.4606, allocations: 93.17 kB / 398.3 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00165/0.4623, allocations: 0.5007 MB / 398.8 MB, free: 14.66 MB / 282.7 MB Notification: Performance of pre-optimization done (n=86): time 4.598e-06/0.4623, allocations: 3.938 kB / 398.8 MB, free: 14.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=86): time 0.008236/0.4706, allocations: 1.677 MB / 400.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.179e-05/0.4707, allocations: 197.2 kB / 400.7 MB, free: 13.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009085/0.4716, allocations: 476.3 kB / 401.2 MB, free: 13.52 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001897/0.4718, allocations: 46.31 kB / 401.2 MB, free: 13.47 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003637/0.4722, allocations: 468.6 kB / 401.7 MB, free: 13.09 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003331/0.4726, allocations: 285.8 kB / 401.9 MB, free: 12.87 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.776e-05/0.4726, allocations: 22.03 kB / 402 MB, free: 12.85 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.4727, allocations: 344.8 kB / 402.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001018/0.4738, allocations: 285.7 kB / 402.6 MB, free: 12.42 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001202/0.475, allocations: 0.5254 MB / 403.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.4762, allocations: 345.2 kB / 403.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.4762, allocations: 2.844 kB / 403.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003625/0.4799, allocations: 1.067 MB / 404.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.71e-05/0.4799, allocations: 7.922 kB / 404.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.753e-05/0.48, allocations: 8.938 kB / 404.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00152/0.4815, allocations: 275.5 kB / 404.8 MB, free: 11.33 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.4829, allocations: 169.8 kB / 405 MB, free: 11.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008048/0.4909, allocations: 4.46 MB / 409.4 MB, free: 7.707 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.4922, allocations: 109.3 kB / 409.5 MB, free: 7.648 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.4924, allocations: 40.38 kB / 409.6 MB, free: 7.641 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of prepare postOptimizeDAE: time 0.0006485/0.493, allocations: 258.3 kB / 409.8 MB, free: 7.43 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000199/0.4932, allocations: 75.89 kB / 409.9 MB, free: 7.391 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/0.4965, allocations: 0.9745 MB / 410.9 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/0.4966, allocations: 16.61 kB / 410.9 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4966, allocations: 5 kB / 410.9 MB, free: 6.957 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.792e-05/0.4967, allocations: 3.703 kB / 410.9 MB, free: 6.957 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005313/0.502, allocations: 1.958 MB / 412.8 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/0.502, allocations: 0 / 412.8 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009994/0.503, allocations: 105.3 kB / 413 MB, free: 5.707 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/0.5045, allocations: 269.5 kB / 413.2 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001572/0.5047, allocations: 23.77 kB / 413.2 MB, free: 5.551 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007244/0.5119, allocations: 4.424 MB / 417.7 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.512, allocations: 4.828 kB / 417.7 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004215/0.5162, allocations: 1.428 MB / 419.1 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005027/0.5168, allocations: 207.6 kB / 419.3 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.5169, allocations: 19.88 kB / 419.3 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008271/0.5178, allocations: 55.48 kB / 419.4 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002749/0.5181, allocations: 68.62 kB / 419.4 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.5182, allocations: 23.7 kB / 419.5 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000508/0.5187, allocations: 321.5 kB / 419.8 MB, free: 428 kB / 282.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.5187, allocations: 0 / 419.8 MB, free: 428 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.001677/0.5204, allocations: 316 kB / 420.1 MB, free: 344 kB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.005223/0.5257, allocations: 2.1 MB / 422.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003624/0.5294, allocations: 1.117 MB / 423.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.5294, allocations: 0 / 423.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002217/0.5316, allocations: 0.7545 MB / 424.1 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009276/0.5326, allocations: 102.8 kB / 424.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00882/0.5415, allocations: 7.038 MB / 431.2 MB, free: 5.219 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008991/0.5424, allocations: 1.018 MB / 432.2 MB, free: 4.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008172/0.5433, allocations: 339.2 kB / 432.5 MB, free: 3.844 MB / 298.7 MB Notification: Performance of SimCode: time 1.563e-06/0.5433, allocations: 0 / 432.5 MB, free: 3.844 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.026/3.57, allocations: 20.3 MB / 452.8 MB, free: 15.52 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat