Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_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.0007973/0.0007973, allocations: 91.67 kB / 16.31 MB, free: 5.551 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.0009114/0.0009115, allocations: 182.2 kB / 17.21 MB, free: 5.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1754/0.1754, allocations: 38.04 MB / 309.7 MB, free: 6.031 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005273/0.0005274, allocations: 19.12 kB / 376.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3075, allocations: 56.33 MB / 432.9 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.005639/0.3132, allocations: 6.291 MB / 439.2 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002404/0.3156, allocations: 1.634 MB / 440.9 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003403/0.316, allocations: 39.69 kB / 440.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004459/0.3165, allocations: 139 kB / 441 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007565/0.3172, allocations: 433.9 kB / 441.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004253/0.3177, allocations: 203.7 kB / 441.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008638/0.3185, allocations: 1.27 MB / 442.9 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002994/0.3189, allocations: 247.6 kB / 443.2 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000385/0.3193, allocations: 374.3 kB / 443.5 MB, free: 8.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000586/0.3198, allocations: 0.5102 MB / 444.1 MB, free: 7.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.3199, allocations: 35.94 kB / 444.1 MB, free: 7.598 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.513e-05/0.32, allocations: 36 kB / 444.1 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.3202, allocations: 271.3 kB / 444.4 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.3203, allocations: 153.3 kB / 444.5 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004073/0.3208, allocations: 0.6351 MB / 445.2 MB, free: 6.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3208, allocations: 7.938 kB / 445.2 MB, free: 6.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3208, allocations: 0 / 445.2 MB, free: 6.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.3208, allocations: 0 / 445.2 MB, free: 6.496 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001473/0.3223, allocations: 0.9061 MB / 446.1 MB, free: 5.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3223, allocations: 8.031 kB / 446.1 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001093/0.3224, allocations: 110.4 kB / 446.2 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.3225, allocations: 71.16 kB / 446.3 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007115/0.3233, allocations: 0.5291 MB / 446.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3234, allocations: 120.7 kB / 446.9 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.537e-05/0.3235, allocations: 55.98 kB / 447 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.3245, allocations: 0.7889 MB / 447.8 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.3246, allocations: 3.938 kB / 447.8 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.824e-05/0.3246, allocations: 23.95 kB / 447.8 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.158e-05/0.3247, allocations: 36.97 kB / 447.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/0.3259, allocations: 0.7494 MB / 448.6 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002847/0.3287, allocations: 2.62 MB / 451.2 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.3302, allocations: 0.8518 MB / 452.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000639/0.3309, allocations: 415.4 kB / 452.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.139e-05/0.3309, allocations: 4.438 kB / 452.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.331, allocations: 39 kB / 452.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.194e-06/0.331, allocations: 0 / 452.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=51): time 0.004017/0.335, allocations: 2.217 MB / 454.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.688e-05/0.3351, allocations: 89.53 kB / 454.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004472/0.3355, allocations: 394 kB / 455.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.052e-05/0.3356, allocations: 33.7 kB / 455.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/0.3358, allocations: 288.4 kB / 455.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.3359, allocations: 181.3 kB / 455.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.713e-05/0.336, allocations: 8 kB / 455.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3361, allocations: 358.8 kB / 456 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005239/0.3367, allocations: 296.9 kB / 456.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005921/0.3373, allocations: 396.6 kB / 456.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005495/0.3378, allocations: 322 kB / 457 MB, free: 10.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3378, allocations: 3.938 kB / 457 MB, free: 10.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00145/0.3393, allocations: 0.9032 MB / 457.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.3393, allocations: 11.95 kB / 458 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3393, allocations: 3.984 kB / 458 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002549/0.3396, allocations: 77.61 kB / 458 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.341, allocations: 395.7 kB / 458.4 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005464/0.3465, allocations: 6.167 MB / 464.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004697/0.347, allocations: 55.97 kB / 464.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.3471, allocations: 20 kB / 464.7 MB, free: 1.953 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003784/0.3475, allocations: 237.6 kB / 464.9 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.532e-05/0.3476, allocations: 55.34 kB / 464.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001547/0.3491, allocations: 0.8593 MB / 465.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.3491, allocations: 12 kB / 465.8 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3491, allocations: 0 / 465.8 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3491, allocations: 0 / 465.8 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002745/0.3519, allocations: 1.715 MB / 467.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3519, allocations: 0 / 467.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00158/0.3535, allocations: 435.7 kB / 468 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002536/0.3538, allocations: 85.62 kB / 468 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.3538, allocations: 8 kB / 468 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/0.356, allocations: 2.891 MB / 470.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.356, allocations: 4.031 kB / 470.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002194/0.3582, allocations: 1.355 MB / 472.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.3584, allocations: 132.4 kB / 472.4 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-05/0.3585, allocations: 12 kB / 472.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.3588, allocations: 43.95 kB / 472.5 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.359, allocations: 55.83 kB / 472.5 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.728e-05/0.359, allocations: 15.98 kB / 472.6 MB, free: 9.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003403/0.3594, allocations: 283.1 kB / 472.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3594, allocations: 0 / 472.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007252/0.3601, allocations: 148 kB / 473 MB, free: 9.148 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002842/0.363, allocations: 1.908 MB / 474.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002994/0.366, allocations: 1.195 MB / 476.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.366, allocations: 4.062 kB / 476.1 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002047/0.3681, allocations: 0.8995 MB / 477 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009169/0.369, allocations: 134 kB / 477.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007838/0.3768, allocations: 4.294 MB / 481.4 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006596/0.3775, allocations: 0.9406 MB / 482.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004784/0.378, allocations: 132.7 kB / 482.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.3783, allocations: 191.4 kB / 482.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3784, allocations: 4 kB / 482.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02748/0.4058, allocations: 12.18 MB / 494.8 MB, free: 3.035 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.4061, allocations: 214.1 kB / 495 MB, free: 2.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.985/2.391, allocations: 4 kB / 495.1 MB, free: 2.793 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1) Environment - environmentSimulation: