Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001017/0.001018, allocations: 99.3 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001124/0.001125, allocations: 199.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003106/0.0003106, allocations: 8 kB / 306.7 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1256, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.005559/0.1312, allocations: 5.099 MB / 363.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004003/0.1353, allocations: 2.057 MB / 365.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006255/0.1359, allocations: 19.94 kB / 365.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005455/0.1365, allocations: 202.7 kB / 365.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001328/0.1378, allocations: 0.5876 MB / 366.2 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008564/0.1387, allocations: 375.1 kB / 366.5 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001035/0.1397, allocations: 0.7722 MB / 367.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001427/0.1412, allocations: 0.9219 MB / 368.2 MB, free: 3.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005366/0.1417, allocations: 370.5 kB / 368.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004966/0.1422, allocations: 446 kB / 369 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.642e-05/0.1423, allocations: 52 kB / 369.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005451/0.1429, allocations: 191.8 kB / 369.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001501/0.143, allocations: 171.3 kB / 369.4 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.1432, allocations: 209.1 kB / 369.6 MB, free: 2.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009823/0.1442, allocations: 1.079 MB / 370.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1442, allocations: 0 / 370.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1442, allocations: 0 / 370.7 MB, free: 1.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1443, allocations: 0 / 370.7 MB, free: 1.16 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.1951/0.3394, allocations: 1.273 MB / 372 MB, free: 18.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.3395, allocations: 9.125 kB / 372 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004771/0.34, allocations: 157 kB / 372.1 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002816/0.3428, allocations: 414.7 kB / 372.6 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.3439, allocations: 0.5544 MB / 373.1 MB, free: 18.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.01e-05/0.344, allocations: 77.45 kB / 373.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001608/0.3442, allocations: 103.8 kB / 373.3 MB, free: 18.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/0.3463, allocations: 1.011 MB / 374.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.3463, allocations: 9.188 kB / 374.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001117/0.3465, allocations: 42.89 kB / 374.3 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.258e-05/0.3465, allocations: 24.12 kB / 374.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.3484, allocations: 0.8682 MB / 375.2 MB, free: 18.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005368/0.3538, allocations: 3.664 MB / 378.9 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001989/0.3558, allocations: 1.904 MB / 380.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001273/0.356, allocations: 180.2 kB / 381 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008363/0.3568, allocations: 0.4962 MB / 381.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.565e-06/0.3569, allocations: 0 / 381.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.004416/0.3613, allocations: 1.675 MB / 383.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.3614, allocations: 194.4 kB / 383.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000653/0.362, allocations: 472 kB / 383.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.48e-05/0.3621, allocations: 43.14 kB / 383.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.3624, allocations: 419.3 kB / 384.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.3626, allocations: 273.8 kB / 384.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.636e-05/0.3627, allocations: 15.81 kB / 384.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3628, allocations: 378.1 kB / 384.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005733/0.3634, allocations: 276.5 kB / 385.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007408/0.3641, allocations: 496.1 kB / 385.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006188/0.3648, allocations: 325 kB / 386 MB, free: 11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.3648, allocations: 6.312 kB / 386 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002058/0.3668, allocations: 1.049 MB / 387 MB, free: 10.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.3669, allocations: 6.781 kB / 387 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.3669, allocations: 5.812 kB / 387 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009072/0.3678, allocations: 272 kB / 387.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006055/0.3684, allocations: 154.7 kB / 387.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004998/0.3734, allocations: 4.477 MB / 391.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.3745, allocations: 109.7 kB / 392 MB, free: 6.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.317e-05/0.3746, allocations: 35.28 kB / 392.1 MB, free: 6.773 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y_last,iDC2.mean.y_last,$PRE.iAC.mean1.y_last,iAC.mean1.y_last,$PRE.iAC.mean2.y_last,iAC.mean2.y_last,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 (82): * Single equations (assignments): 80 * 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.0006813/0.3753, allocations: 241.6 kB / 392.3 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.3755, allocations: 71.3 kB / 392.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002491/0.378, allocations: 1.017 MB / 393.4 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.378, allocations: 13.53 kB / 393.4 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.378, allocations: 0 / 393.4 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.378, allocations: 4.969 kB / 393.4 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00363/0.3816, allocations: 1.927 MB / 395.3 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3817, allocations: 0 / 395.3 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004428/0.3821, allocations: 104.5 kB / 395.5 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007324/0.3829, allocations: 260.2 kB / 395.7 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.113e-05/0.3829, allocations: 25.48 kB / 395.7 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004632/0.3876, allocations: 4.423 MB / 400.2 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3876, allocations: 0 / 400.2 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/0.39, allocations: 1.412 MB / 401.6 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003284/0.3904, allocations: 209.6 kB / 401.8 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.46e-05/0.3905, allocations: 19.75 kB / 401.8 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.3909, allocations: 47.38 kB / 401.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.3911, allocations: 76.11 kB / 401.9 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.3911, allocations: 23.59 kB / 401.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003585/0.3915, allocations: 320.8 kB / 402.2 MB, free: 15.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.3915, allocations: 0 / 402.2 MB, free: 15.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001228/0.3927, allocations: 317.5 kB / 402.6 MB, free: 15.56 MB / 318.1 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_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * 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 (57): * Single equations (assignments): 52 * 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.002952/0.3957, allocations: 2.077 MB / 404.6 MB, free: 14.13 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002072/0.3978, allocations: 1.094 MB / 405.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3978, allocations: 0 / 405.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/0.399, allocations: 0.7493 MB / 406.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006008/0.3996, allocations: 101.8 kB / 406.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004926/0.4045, allocations: 6.022 MB / 412.6 MB, free: 6.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005918/0.4052, allocations: 1.018 MB / 413.6 MB, free: 5.023 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004056/0.4056, allocations: 85.44 kB / 413.7 MB, free: 4.938 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003744/0.406, allocations: 327.3 kB / 414 MB, free: 4.617 MB / 318.1 MB Notification: Performance of SimCode: time 7.61e-07/0.406, allocations: 3.938 kB / 414 MB, free: 4.613 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03625/0.4422, allocations: 17.24 MB / 431.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002584/0.4425, allocations: 236 kB / 431.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.261/2.704, allocations: 3.094 kB / 431.5 MB, free: 3.426 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat